OSDN Git Service

Clear more native pointers in finalizers
authorHans Boehm <hboehm@google.com>
Tue, 10 May 2016 20:01:22 +0000 (13:01 -0700)
committerHans Boehm <hboehm@google.com>
Tue, 10 May 2016 22:33:53 +0000 (15:33 -0700)
commitad3cc3c63c6d0f637d2ece3935b5b01b19473299
tree2b27d86da739d9ec31771a1237e8bf0b6b68d8fe
parent4c7169fadf9bc1eeac04635312fba8fb8e278693
Clear more native pointers in finalizers

This hopefully handles the remaining finalizers in frameworks/base
that didn't guard against calls from other finalizers after being
finalized.

The goal here is to reduce the possible corruption causes we have
to think about by a few.

If any of theses are either very frequently used, or use large
Java (as opposed to native) objects, we should probably convert them
to NativeAllocationRegistry instead. But that's more work.

Bug: 18178237
Change-Id: I79bc0e8fa20af8f340418a6226022e0294d77f02
graphics/java/android/graphics/Camera.java
graphics/java/android/graphics/ColorFilter.java
graphics/java/android/graphics/DrawFilter.java
graphics/java/android/graphics/Movie.java
graphics/java/android/graphics/Rasterizer.java
graphics/java/android/graphics/Xfermode.java