8346713: [testsuite] NeverActAsServerClassMachine breaks TestPLABAdaptToMinTLABSize.java TestPinnedHumongousFragmentation.java TestPinnedObjectContents.java
Reviewed-by: stefank, tschatzl
This commit is contained in:
parent
249f141211
commit
43b7e9f547
@ -24,17 +24,29 @@
|
|||||||
package gc;
|
package gc;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @test TestPLABAdaptToMinTLABSize
|
* @test TestPLABAdaptToMinTLABSizeG1
|
||||||
* @bug 8289137
|
* @bug 8289137
|
||||||
* @summary Make sure that Young/OldPLABSize adapt to MinTLABSize setting.
|
* @summary Make sure that Young/OldPLABSize adapt to MinTLABSize setting.
|
||||||
* @requires vm.gc.Parallel | vm.gc.G1
|
* @requires vm.gc.G1
|
||||||
* @library /test/lib
|
* @library /test/lib
|
||||||
* @modules java.base/jdk.internal.misc
|
* @modules java.base/jdk.internal.misc
|
||||||
* java.management
|
* java.management
|
||||||
* @run driver gc.TestPLABAdaptToMinTLABSize
|
* @run driver gc.TestPLABAdaptToMinTLABSize -XX:+UseG1GC
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @test TestPLABAdaptToMinTLABSizeParallel
|
||||||
|
* @bug 8289137
|
||||||
|
* @summary Make sure that Young/OldPLABSize adapt to MinTLABSize setting.
|
||||||
|
* @requires vm.gc.Parallel
|
||||||
|
* @library /test/lib
|
||||||
|
* @modules java.base/jdk.internal.misc
|
||||||
|
* java.management
|
||||||
|
* @run driver gc.TestPLABAdaptToMinTLABSize -XX:+UseParallelGC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
|
||||||
import jdk.test.lib.process.OutputAnalyzer;
|
import jdk.test.lib.process.OutputAnalyzer;
|
||||||
@ -68,9 +80,10 @@ public class TestPLABAdaptToMinTLABSize {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
runTest(true, "-XX:MinTLABSize=100k");
|
String gc = args[0];
|
||||||
|
runTest(true, gc, "-XX:MinTLABSize=100k");
|
||||||
// Should not succeed when explicitly specifying invalid combination.
|
// Should not succeed when explicitly specifying invalid combination.
|
||||||
runTest(false, "-XX:MinTLABSize=100k", "-XX:OldPLABSize=5k");
|
runTest(false, gc, "-XX:MinTLABSize=100k", "-XX:OldPLABSize=5k");
|
||||||
runTest(false, "-XX:MinTLABSize=100k", "-XX:YoungPLABSize=5k");
|
runTest(false, gc, "-XX:MinTLABSize=100k", "-XX:YoungPLABSize=5k");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
* @build jdk.test.whitebox.WhiteBox
|
* @build jdk.test.whitebox.WhiteBox
|
||||||
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
|
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
|
||||||
* @run main/othervm -Xlog:gc+region=trace -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g
|
* @run main/othervm -Xlog:gc+region=trace -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xmx1g -Xms1g
|
||||||
* -XX:VerifyGCType=full -XX:+VerifyDuringGC -XX:+VerifyAfterGC -XX:+WhiteBoxAPI -Xbootclasspath/a:.
|
* -XX:VerifyGCType=full -XX:+VerifyDuringGC -XX:+VerifyAfterGC -XX:+WhiteBoxAPI -XX:+UseG1GC -Xbootclasspath/a:.
|
||||||
* gc.g1.pinnedobjs.TestPinnedHumongousFragmentation
|
* gc.g1.pinnedobjs.TestPinnedHumongousFragmentation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -33,7 +33,8 @@
|
|||||||
* java.management
|
* java.management
|
||||||
* @build jdk.test.whitebox.WhiteBox
|
* @build jdk.test.whitebox.WhiteBox
|
||||||
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
|
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
|
||||||
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. -XX:+ZapUnusedHeapArea -Xlog:gc,gc+ergo+cset=trace gc.g1.pinnedobjs.TestPinnedObjectContents
|
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:+UseG1GC
|
||||||
|
* -Xbootclasspath/a:. -XX:+ZapUnusedHeapArea -Xlog:gc,gc+ergo+cset=trace gc.g1.pinnedobjs.TestPinnedObjectContents
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package gc.g1.pinnedobjs;
|
package gc.g1.pinnedobjs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user