diff options
author | Ryan Mitchell <rtmitchell@google.com> | 2021-03-31 08:49:24 -0700 |
---|---|---|
committer | Ryan Mitchell <rtmitchell@google.com> | 2021-03-31 09:59:34 -0700 |
commit | 9ff600f60a291de25b428b148cf4e668d6390986 (patch) | |
tree | 1aec0ed8249d013be6b31c7224b7c458df351caf /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | b50914c52441216f27b7a6d789f00be62f7cd5f2 (diff) |
Remove ApkAssets access in finalizer
ResourcesProvider#finalize called ApkAssets#close. ApkAssets#close is
called during ApkAssets#finalize. If a ResourcesProvider and its
corresponding ApkAssets are finalized concurrently, there may be a
chance that the ApkAsset could be finalized first and then
ResourcesProvider calls ApkAssets#close on the object that has already
been finalized.
This may not fix the bug, but there is no reason to close the ApkAsset
during finalization of the ResourcesProvider.
Bug: 159041693
Test: none
Change-Id: I317ca982df2e11a18ccd6c95c74565dbac417bd6
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions