diff options
author | Hans Boehm <hboehm@google.com> | 2018-02-15 16:12:51 -0800 |
---|---|---|
committer | Hans Boehm <hboehm@google.com> | 2018-02-16 10:22:12 -0800 |
commit | 03477cb9b707fb2c32f1ba8abdcee2ee43d72bb0 (patch) | |
tree | e127a168ca82c57ccc40721559359f11b4055d81 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 2792c7f6a2477e0e0a4fbf829ed3973654383a9c (diff) |
Avoid BinderProxy duplicate native registration
In case of an OOME, we would recycle the nativeData we just allocated,
even if the BinderProxy.getInstance() call got far enough to register
the allocation for automatic freeing. This could cause a duplicate
deallocation.
This changes the code to be much more careful about handling native
deallocation correctly in the exception case.
Bug: 72707270
Test: Build and boot master.
Change-Id: I2cffdd1d59af95f089714893e819c2d02302a6d4
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions