< prev index next >
test/hotspot/jtreg/serviceability/tmtools/jstat/GcTest02.java
Print this page
rev 50999 : 8207067: [test] prevent timeouts in serviceability/tmtools/jstat/{GcTest02,GcCauseTest02}.java
Reviewed-by: dholmes, goetz
*** 1,7 ****
/*
! * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* 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) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* 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.
*** 30,44 ****
* @requires vm.opt.ExplicitGCInvokesConcurrent != true
* @requires vm.gc != "Z"
* @modules java.base/jdk.internal.misc
* @library /test/lib
* @library ../share
! * @run main/othervm -XX:+UsePerfData -XX:MaxNewSize=4m -XX:MaxHeapSize=128M -XX:MaxMetaspaceSize=128M GcTest02
*/
import utils.*;
public class GcTest02 {
public static void main(String[] args) throws Exception {
new GarbageProducerTest(new JstatGcTool(ProcessHandle.current().pid())).run();
}
}
--- 30,47 ----
* @requires vm.opt.ExplicitGCInvokesConcurrent != true
* @requires vm.gc != "Z"
* @modules java.base/jdk.internal.misc
* @library /test/lib
* @library ../share
! * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-VerifyDependencies
! -XX:+UsePerfData -XX:MaxNewSize=4m -XX:MaxHeapSize=128M -XX:MaxMetaspaceSize=128M GcTest02
*/
import utils.*;
public class GcTest02 {
public static void main(String[] args) throws Exception {
+ // This test produces more than 90_000 classes until it eats up ~70% of the 128M meta space.
+ // We turn off VerifyDependencies because it slows down the test considerably in debug builds.
new GarbageProducerTest(new JstatGcTool(ProcessHandle.current().pid())).run();
}
}
< prev index next >