< prev index next >
test/hotspot/jtreg/gc/shenandoah/options/TestLoopMiningArguments.java
Print this page
rev 54184 : 8220812: gc/shenandoah/options/TestLoopMiningArguments.java fails if default GC is serial/parallel/cms
*** 1,7 ****
/*
! * Copyright (c) 2017, 2018, Red Hat, Inc. All rights reserved.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
--- 1,7 ----
/*
! * Copyright (c) 2017, 2019, Red Hat, Inc. All rights reserved.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
*** 51,104 ****
Asserts.assertEQ(output.firstMatch("(.+?) UseCountedLoopSafepoints.+?= (.+?) (.+?)", 2), Boolean.toString(cls), msg + ", but got wrong CLS");
Asserts.assertEQ(output.firstMatch("(.+?) LoopStripMiningIter.+?= (.+?) (.+?)", 2), String.valueOf(iters), msg + ", but got wrong LSM");
}
public static void main(String[] args) throws Exception {
- testDefaultGC();
- testShenandoah();
- }
-
- public static void testDefaultGC() throws Exception {
- testWith("Default GC should have CLS enabled, LSM = 1000",
- true, 1000);
-
- testWith("Default GC with +CLS should set LSM = 1",
- true, 1,
- "-XX:+UseCountedLoopSafepoints"
- );
-
- testWith("Default GC with +CLS should not override LSM>1",
- true, 10,
- "-XX:LoopStripMiningIter=10",
- "-XX:+UseCountedLoopSafepoints"
- );
-
- testWith("Default GC with +CLS should not override LSM=1",
- true, 1,
- "-XX:LoopStripMiningIter=1",
- "-XX:+UseCountedLoopSafepoints"
- );
-
- testWith("Default GC with +CLS should override LSM=0 to 1",
- true, 1,
- "-XX:LoopStripMiningIter=0",
- "-XX:+UseCountedLoopSafepoints"
- );
-
- testWith("Default GC with -CLS should set LSM = 0",
- false, 0,
- "-XX:-UseCountedLoopSafepoints"
- );
-
- testWith("Default GC with -CLS should override LSM to 0",
- false, 0,
- "-XX:LoopStripMiningIter=10",
- "-XX:-UseCountedLoopSafepoints"
- );
- }
-
- public static void testShenandoah() throws Exception {
testWith("Shenandoah should have CLS and LSM enabled",
true, 1000,
"-XX:+UnlockExperimentalVMOptions",
"-XX:+UseShenandoahGC"
);
--- 51,60 ----
< prev index next >