OSDN Git Service

Fix native allocation tracking on Dalvik.
authorMathieu Chartier <mathieuc@google.com>
Thu, 22 Aug 2013 21:25:55 +0000 (14:25 -0700)
committerMathieu Chartier <mathieuc@google.com>
Fri, 23 Aug 2013 21:18:28 +0000 (14:18 -0700)
commit95adf1ff81dec324746bef58ba8c45dc1c8f3b50
tree9d22b45f0329ef3fab82a6d8a39bf2debdc446e3
parent8723464b85290c1b348bf3e29d06e6d0a291fd4c
Fix native allocation tracking on Dalvik.

Fixed issue where we had inverted logic when checking for
pending exceptions.

Changed the logic to not update the native allocation watermarks
after concurrent GC since the finalizers may not have been run at
this point.

Copied over the test from ART for ensuring that it is working.

Bug: 10444866

Change-Id: Ie26170f9c4703f11e993233cdc9c5f46396fca84
tests/098-native-allocations/expected.txt [new file with mode: 0644]
tests/098-native-allocations/info.txt [new file with mode: 0644]
tests/098-native-allocations/src/Main.java [new file with mode: 0644]
vm/alloc/Alloc.cpp
vm/alloc/HeapSource.cpp