diff options
author | Jeff Brown <jeffbrown@google.com> | 2015-04-17 15:22:27 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2015-04-17 15:24:31 -0700 |
commit | 3b4049e79b1ea2872891cc0e87146e146111d502 (patch) | |
tree | 976c1f28ca35865b8fee777ba39a2e52fe90e80f /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 250dd262910c3a79e87746d3c5519cb3c7e66cab (diff) |
Fix leaks due to GC circular references.
The DisplayEventReceiver and SensorManager event queue both get
leaked when the Looper thread they are attached to dies because
the Java object holds a strong reference to its native peer and
meanwhile the native peer holds a strong reference to the Java
object through JNI.
Fixed the issue by indirecting through a weak reference as was
done for InputEventReceiver some time ago.
Bug: 12455729
Change-Id: I3d80a2a190192d1a2981bf5ae0cad30f0f7688a5
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions