diff options
author | 2019-04-05 10:16:00 -0700 | |
---|---|---|
committer | 2019-04-09 17:36:26 +0000 | |
commit | 66a655029c98de9492570f4cfd06476c0fde9cd1 (patch) | |
tree | ce90afc889026a667cec7835af00326b2b5489b2 /test/1337-gc-coverage/src/Main.java | |
parent | caf4b5ae52eaf453cf0ae33e12fd5f849a15cb82 (diff) |
Remove support for moving GC collector transitions
Stop supporting CMS <-> SS transitions since they are no longer used
with CC.
Test: test-art-host
Bug: 78286368
Change-Id: I2f7b1538d2c73546ac2ab8bd1eb47f01f9f40503
Diffstat (limited to 'test/1337-gc-coverage/src/Main.java')
-rw-r--r-- | test/1337-gc-coverage/src/Main.java | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/test/1337-gc-coverage/src/Main.java b/test/1337-gc-coverage/src/Main.java index 7875eb1824..128ad4d83c 100644 --- a/test/1337-gc-coverage/src/Main.java +++ b/test/1337-gc-coverage/src/Main.java @@ -22,7 +22,6 @@ public class Main { public static void main(String[] args) { System.loadLibrary(args[0]); testHomogeneousCompaction(); - testCollectorTransitions(); System.out.println("Done."); } @@ -68,40 +67,10 @@ public class Main { } } - private static void testCollectorTransitions() { - if (supportCollectorTransition()) { - Object o = new Object(); - // Transition to semi-space collector. - allocateStuff(); - transitionToSS(); - allocateStuff(); - long addressBefore = objectAddress(o); - Runtime.getRuntime().gc(); - long addressAfter = objectAddress(o); - if (addressBefore == addressAfter) { - System.out.println("error: Expected different adddress " + addressBefore + " vs " + - addressAfter); - } - // Transition back to CMS. - transitionToCMS(); - allocateStuff(); - addressBefore = objectAddress(o); - Runtime.getRuntime().gc(); - addressAfter = objectAddress(o); - if (addressBefore != addressAfter) { - System.out.println("error: Expected same adddress " + addressBefore + " vs " + - addressAfter); - } - } - } - // Methods to get access to ART internals. private static native boolean supportHomogeneousSpaceCompact(); private static native boolean performHomogeneousSpaceCompact(); private static native void incrementDisableMovingGC(); private static native void decrementDisableMovingGC(); private static native long objectAddress(Object object); - private static native boolean supportCollectorTransition(); - private static native void transitionToSS(); - private static native void transitionToCMS(); } |