8267845: Add @requires to avoid running G1 large pages test with wrong page size

Reviewed-by: tschatzl, kbarrett
This commit is contained in:
Stefan Johansson 2021-05-31 12:08:24 +00:00
parent 4ade125c8a
commit ce44cd6881
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ package gc.g1;
* @modules java.base/jdk.internal.misc
* @library /test/lib
* @requires vm.gc.G1
* @requires vm.opt.LargePageSizeInBytes == null
* @build sun.hotspot.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm -Xbootclasspath/a:. -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:+IgnoreUnrecognizedVMOptions -XX:+UseLargePages gc.g1.TestLargePageUseForAuxMemory

View File

@ -30,6 +30,7 @@ package gc.g1;
* @modules java.base/jdk.internal.misc
* @library /test/lib
* @requires vm.gc.G1
* @requires vm.opt.LargePageSizeInBytes == null
* @build sun.hotspot.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox
* @run main/othervm -Xbootclasspath/a:. -XX:+UseG1GC -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI