diff options
author | 2016-10-10 19:09:09 -0700 | |
---|---|---|
committer | 2016-10-11 14:03:54 -0700 | |
commit | cc13b2226bcfb41e917f99ae5aeab79f25ed052e (patch) | |
tree | 335dea9a3392bd971d14c1f9f38e482d45b836a1 /test/904-object-allocation/src | |
parent | c1f24b947a4dfe76064db3ae5470a388a67650a8 (diff) |
ART: Add object reclaim support
Add support for the object free callback.
Refactor code in support. Add test.
Bug: 31384923
Test: m test-art-host
Test: m test-art-host-run-test-905-object-free
Test: m ART_USE_READ_BARRIER=true test-art-host-run-test-905-object-free
Change-Id: Icde40ad464c723cfe2f7660c07cd2f79b6dc2032
Diffstat (limited to 'test/904-object-allocation/src')
-rw-r--r-- | test/904-object-allocation/src/Main.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/904-object-allocation/src/Main.java b/test/904-object-allocation/src/Main.java index f15c1c213f..9a089bdd78 100644 --- a/test/904-object-allocation/src/Main.java +++ b/test/904-object-allocation/src/Main.java @@ -40,7 +40,7 @@ public class Main { } public static void doTest(ArrayList<Object> l) throws Exception { - setupCallback(); + setupObjectAllocCallback(); enableAllocationTracking(null, true); @@ -127,6 +127,6 @@ public class Main { } } - private static native void setupCallback(); + private static native void setupObjectAllocCallback(); private static native void enableAllocationTracking(Thread thread, boolean enable); } |