< prev index next >
test/gc/shenandoah/compiler/TestCommonGCLoads.java
Print this page
rev 10521 : [backport] Fix TestCommonGCLoads test
@@ -25,25 +25,25 @@
* @test
* @summary Test GC state load commoning works
* @requires vm.flavor == "server"
* @run main/othervm -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:-TieredCompilation -XX:+UseShenandoahGC
* -XX:+UnlockExperimentalVMOptions -XX:-ShenandoahCommonGCStateLoads
- * TestExpandedWBLostNullCheckDep
+ * TestCommonGCLoads
* @run main/othervm -XX:-BackgroundCompilation -XX:-UseOnStackReplacement -XX:-TieredCompilation -XX:+UseShenandoahGC
* -XX:+UnlockExperimentalVMOptions -XX:+ShenandoahCommonGCStateLoads
- * TestExpandedWBLostNullCheckDep
+ * TestCommonGCLoads
*/
public class TestCommonGCLoads {
- Object d = new Object();
+ static Object d = new Object();
- Target t1 = new Target();
- Target t2 = new Target();
- Target t3 = new Target();
- Target t4 = new Target();
- Target t5 = new Target();
+ static Target t1 = new Target();
+ static Target t2 = new Target();
+ static Target t3 = new Target();
+ static Target t4 = new Target();
+ static Target t5 = new Target();
static void test() {
t1.field = d;
t2.field = d;
t3.field = d;
@@ -54,6 +54,10 @@
static public void main(String[] args) {
for (int i = 0; i < 100_000; i++) {
test();
}
}
+
+ static class Target {
+ Object field;
+ }
}
< prev index next >