diff options
author | JW Wang <wangchun@google.com> | 2020-08-21 18:12:53 +0800 |
---|---|---|
committer | JW Wang <wangchun@google.com> | 2020-08-28 11:09:00 +0800 |
commit | 6acd2bda7f1ce403f6a8b28878831c8bfd8f7974 (patch) | |
tree | 87fe2c0b5ccdf513f734fc08b1f1c259d3ad6316 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 061a28c7a8a6d46a7af52b56cdb81939a748c07d (diff) |
Ensure no state changes after mDestroyed=true (4/n)
mDestroyed=true is a terminal state. No more state changes should happen
after reaching the final state.
Since abandon() can be called at any moment, checking mDestroyed and
setting mCommitted/mRelinquished must be done in the same synchronization
block to prevent state changes after mDestroyed=true.
Bug: 161765186
Test: atest StagedInstallTest AtomicInstallTest StagedInstallInternalTest
Change-Id: I301ab7d89332cfbf14bd69b7b2601fe26bd0eaf3
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions