diff options
author | Zimuzo <zezeozue@google.com> | 2019-05-16 18:09:23 +0100 |
---|---|---|
committer | Zimuzo <zezeozue@google.com> | 2019-05-18 12:31:07 +0100 |
commit | 8d231b4c6dc5bd46ecd207ddd22c5374cc68c39c (patch) | |
tree | 8a87876f9bd62d47ec5890af20347cd7951c2a66 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 0ab517141f1828ec14a5b0071bdea0a60b873f71 (diff) |
Fix handling multiple staged rollback sessions ready signal
After we stage a session for rollback, we need to wait for the
session to be ready and then reboot. To ensure we don't miss the
ready signal, we register a BroadcastReceiver to listen to session changes
and also check for session ready right away. This caused a race condition
where we may handle post-ready twice. This caused a crash because we
attempt to unregister the receiver twice, it's also a problem because
we could log the same event twice.
Now, we store the rollback ids we are about to handle and ensure we never
handle post-ready more than once.
Test: Manual test && atest StagedRollbackTest
Bug: 132866890
Change-Id: I5187ff20fb83b29f7a00a28bf6ad8105ca4f0067
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions