summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorWonsik Kim <wonsik@google.com>2020-06-18 23:52:03 -0700
committerWonsik Kim <wonsik@google.com>2020-06-19 13:04:02 -0700
commite37ef4bc9210b3882ef83bb2ef514239b30d4bdf (patch)
treea77e9e7095bde3f11f8bb669b1c84d5a83fa2335 /tools/aapt2/java/JavaClassGenerator.cpp
parent721a3ac8360cbd5346317c0092e95e8a83b21cd9 (diff)
media: fix race condition on async release
Clear Java object state at releaseAsync(), and delete native object upon async release complete. Clearing CodecBase object only led to a rare race condition which caused null pointer dereference. Bug: 158501286 Test: atest CtsMediaTestCases:MediaCodecTest#testAsyncRelease (100 times) Test: atest CtsMediaTestCases:MediaCodecCapabilitiesTest#testGetMaxSupportedInstances Test: atest CtsMediaTestCases -- --module-arg CtsMediaTestCases:size:small Change-Id: I691d39007c0ea770318f4038558ad338252bd2fb
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions