Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8346713: [testsuite] NeverActAsServerClassMachine breaks TestPLABAdaptToMinTLABSize.java TestPinnedHumongousFragmentation.java TestPinnedObjectContents.java #1277

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions test/hotspot/jtreg/gc/TestPLABAdaptToMinTLABSize.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,29 @@
package gc;

/*
* @test TestPLABAdaptToMinTLABSize
* @test TestPLABAdaptToMinTLABSizeG1
* @bug 8289137
* @summary Make sure that Young/OldPLABSize adapt to MinTLABSize setting.
* @requires vm.gc.Parallel | vm.gc.G1
* @requires vm.gc.G1
* @library /test/lib
* @modules java.base/jdk.internal.misc
* 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.Arrays;
import java.util.Collections;

import jdk.test.lib.process.OutputAnalyzer;
Expand Down Expand Up @@ -68,9 +80,10 @@ private static void runTest(boolean shouldSucceed, String... extraArgs) throws E
}

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.
runTest(false, "-XX:MinTLABSize=100k", "-XX:OldPLABSize=5k");
runTest(false, "-XX:MinTLABSize=100k", "-XX:YoungPLABSize=5k");
runTest(false, gc, "-XX:MinTLABSize=100k", "-XX:OldPLABSize=5k");
runTest(false, gc, "-XX:MinTLABSize=100k", "-XX:YoungPLABSize=5k");
}
}