-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8369147: Various issues with new tests added by JDK-8316694 #27659
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,8 +27,7 @@ | |
* @bug 8316694 | ||
* @library /test/lib / | ||
* @modules java.base/jdk.internal.misc java.management | ||
* @requires vm.opt.DeoptimizeALot != true | ||
* @requires vm.gc.Serial | ||
* @requires vm.opt.DeoptimizeALot != true & vm.gc.Serial | ||
* @build jdk.test.whitebox.WhiteBox | ||
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox | ||
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbatch -XX:+SegmentedCodeCache -XX:+UseSerialGC | ||
|
@@ -40,8 +39,7 @@ | |
* @bug 8316694 | ||
* @library /test/lib / | ||
* @modules java.base/jdk.internal.misc java.management | ||
* @requires vm.opt.DeoptimizeALot != true | ||
* @requires vm.gc.Parallel | ||
* @requires vm.opt.DeoptimizeALot != true & vm.gc.Parallel | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @requires vm.gc == "null" | vm.gc == "Parallel" |
||
* @build jdk.test.whitebox.WhiteBox | ||
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox | ||
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbatch -XX:+SegmentedCodeCache -XX:+UseParallelGC | ||
|
@@ -53,8 +51,7 @@ | |
* @bug 8316694 | ||
* @library /test/lib / | ||
* @modules java.base/jdk.internal.misc java.management | ||
* @requires vm.opt.DeoptimizeALot != true | ||
* @requires vm.gc.G1 | ||
* @requires vm.opt.DeoptimizeALot != true & vm.gc.G1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @requires vm.gc == "null" | vm.gc == "G1" |
||
* @build jdk.test.whitebox.WhiteBox | ||
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox | ||
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbatch -XX:+SegmentedCodeCache -XX:+UseG1GC | ||
|
@@ -66,8 +63,7 @@ | |
* @bug 8316694 | ||
* @library /test/lib / | ||
* @modules java.base/jdk.internal.misc java.management | ||
* @requires vm.opt.DeoptimizeALot != true | ||
* @requires vm.gc.Shenandoah | ||
* @requires vm.opt.DeoptimizeALot != true & vm.gc.Shenandoah | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @requires vm.gc == "null" | vm.gc == "Shenandoah" |
||
* @build jdk.test.whitebox.WhiteBox | ||
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox | ||
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbatch -XX:+SegmentedCodeCache -XX:+UseShenandoahGC | ||
|
@@ -79,8 +75,7 @@ | |
* @bug 8316694 | ||
* @library /test/lib / | ||
* @modules java.base/jdk.internal.misc java.management | ||
* @requires vm.opt.DeoptimizeALot != true | ||
* @requires vm.gc.Z | ||
* @requires vm.opt.DeoptimizeALot != true & vm.gc.Z | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @requires vm.gc == "null" | vm.gc == "Z" |
||
* @build jdk.test.whitebox.WhiteBox | ||
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox | ||
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbatch -XX:+SegmentedCodeCache -XX:+UseZGC | ||
|
@@ -118,7 +113,7 @@ public static void main(String [] args) throws Exception { | |
NMethod origNmethod = NMethod.get(method, false); | ||
|
||
// Relocate nmethod and mark old for cleanup | ||
WHITE_BOX.relocateNMethodFromMethod(method, BlobType.MethodProfiled.id); | ||
WHITE_BOX.relocateNMethodFromMethod(method, BlobType.MethodNonProfiled.id); | ||
|
||
// Trigger GC to clean up old nmethod | ||
WHITE_BOX.fullGC(); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,8 +29,7 @@ | |
* @library /test/lib / | ||
* @modules java.base/jdk.internal.misc java.management | ||
* | ||
* @requires vm.opt.DeoptimizeALot != true | ||
* @requires vm.gc.Serial | ||
* @requires vm.opt.DeoptimizeALot != true & vm.gc.Serial | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here as in test/hotspot/jtreg/compiler/whitebox/DeoptimizeRelocatedNMethod.java |
||
* | ||
* @build jdk.test.whitebox.WhiteBox | ||
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox | ||
|
@@ -45,8 +44,7 @@ | |
* @library /test/lib / | ||
* @modules java.base/jdk.internal.misc java.management | ||
* | ||
* @requires vm.opt.DeoptimizeALot != true | ||
* @requires vm.gc.Parallel | ||
* @requires vm.opt.DeoptimizeALot != true & vm.gc.Parallel | ||
* | ||
* @build jdk.test.whitebox.WhiteBox | ||
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox | ||
|
@@ -61,8 +59,7 @@ | |
* @library /test/lib / | ||
* @modules java.base/jdk.internal.misc java.management | ||
* | ||
* @requires vm.opt.DeoptimizeALot != true | ||
* @requires vm.gc.G1 | ||
* @requires vm.opt.DeoptimizeALot != true & vm.gc.G1 | ||
* | ||
* @build jdk.test.whitebox.WhiteBox | ||
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox | ||
|
@@ -77,8 +74,7 @@ | |
* @library /test/lib / | ||
* @modules java.base/jdk.internal.misc java.management | ||
* | ||
* @requires vm.opt.DeoptimizeALot != true | ||
* @requires vm.gc.Shenandoah | ||
* @requires vm.opt.DeoptimizeALot != true & vm.gc.Shenandoah | ||
* | ||
* @build jdk.test.whitebox.WhiteBox | ||
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox | ||
|
@@ -93,8 +89,7 @@ | |
* @library /test/lib / | ||
* @modules java.base/jdk.internal.misc java.management | ||
* | ||
* @requires vm.opt.DeoptimizeALot != true | ||
* @requires vm.gc.Z | ||
* @requires vm.opt.DeoptimizeALot != true & vm.gc.Z | ||
* | ||
* @build jdk.test.whitebox.WhiteBox | ||
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox | ||
|
@@ -132,7 +127,7 @@ protected void test() throws Exception { | |
checkCompiled(); | ||
NMethod origNmethod = NMethod.get(method, false); | ||
|
||
WHITE_BOX.relocateNMethodFromMethod(method, BlobType.MethodProfiled.id); | ||
WHITE_BOX.relocateNMethodFromMethod(method, BlobType.MethodNonProfiled.id); | ||
|
||
WHITE_BOX.fullGC(); | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,10 +28,11 @@ | |
* @library /test/lib / | ||
* @modules java.base/jdk.internal.misc | ||
* java.management | ||
* @requires vm.compiler2.enabled & vm.opt.SegmentedCodeCache != false & vm.opt.TieredCompilation != false | ||
* @build jdk.test.whitebox.WhiteBox | ||
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox | ||
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI | ||
* -XX:+SegmentedCodeCache -XX:+UnlockExperimentalVMOptions | ||
* @run main/othervm/timeout=600 -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I prefer @eastig suggestion to limit run time instead of increase timeout. |
||
* -XX:+SegmentedCodeCache -XX:+TieredCompilation -XX:+UnlockExperimentalVMOptions | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure you need to specify |
||
* -XX:+NMethodRelocation compiler.whitebox.StressNMethodRelocation | ||
*/ | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
* | ||
* @bug 8316694 | ||
* @summary Verify that nmethod relocation posts the correct JVMTI events | ||
* @requires vm.jvmti | ||
* @requires vm.jvmti & vm.gc.Serial | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
* @library /test/lib /test/hotspot/jtreg | ||
* @build jdk.test.whitebox.WhiteBox | ||
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion:
@requires vm.gc == "null" | vm.gc == "Serial"