summaryrefslogtreecommitdiff
path: root/test/904-object-allocation/src
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2016-10-10 19:09:09 -0700
committer Andreas Gampe <agampe@google.com> 2016-10-11 14:03:54 -0700
commitcc13b2226bcfb41e917f99ae5aeab79f25ed052e (patch)
tree335dea9a3392bd971d14c1f9f38e482d45b836a1 /test/904-object-allocation/src
parentc1f24b947a4dfe76064db3ae5470a388a67650a8 (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.java4
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);
}