Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8252108: Modify nsk/stress/stack tests to check page size
Reviewed-by: hseigel, stuefe
  • Loading branch information
nick-arm committed Aug 26, 2020
1 parent 0776cc7 commit 19c4f8b158a16e2e1fe3ca531b6b81cfcd2812f8
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
@@ -58,6 +58,7 @@ requires.properties= \
vm.jvmci \
vm.emulatedClient \
vm.cpu.features \
vm.pageSize \
vm.debug \
vm.hasSA \
vm.hasJFR \
@@ -44,10 +44,10 @@
* and 1.4 on Win32.
* See the bug:
* 4366625 (P4/S4) multiple stack overflow causes HS crash
* The stack size is too small to run on aarch64. Making it bigger
* could cause timeouts on other platform.
* The stack size is too small to run on systems with > 4K page size.
* Making it bigger could cause timeouts on other platform.
*
* @requires (vm.opt.DeoptimizeALot != true & vm.compMode != "Xcomp" & os.arch != "aarch64")
* @requires (vm.opt.DeoptimizeALot != true & vm.compMode != "Xcomp" & vm.pageSize == 4096)
* @run main/othervm/timeout=900 -Xss200K nsk.stress.stack.stack008
*/

@@ -46,10 +46,10 @@
* See the bug:
* 4366625 (P4/S4) multiple stack overflow causes HS crash
*
* @requires (vm.opt.DeoptimizeALot != true & vm.compMode != "Xcomp")
* @requires (vm.opt.DeoptimizeALot != true & vm.compMode != "Xcomp" & vm.pageSize == 4096)
* @library /vmTestbase
* @build nsk.share.Terminator
* @run main/othervm/timeout=900 -Xss448K nsk.stress.stack.stack018 -eager
* @run main/othervm/timeout=900 -Xss220K nsk.stress.stack.stack018 -eager
*/

package nsk.stress.stack;
@@ -38,10 +38,10 @@
* Solaris and Win32 platforms.
* See the bug:
* 4366625 (P4/S4) multiple stack overflow causes HS crash
* The stack size is too small to run on aarch64. Making it bigger
* could cause timeouts on other platform.
* The stack size is too small to run on systems with > 4K page size.
* Making it bigger could cause timeouts on other platform.
*
* @requires (vm.opt.DeoptimizeALot != true & vm.compMode != "Xcomp" & os.arch != "aarch64")
* @requires (vm.opt.DeoptimizeALot != true & vm.compMode != "Xcomp" & vm.pageSize == 4096)
* @requires os.family != "windows"
* @library /vmTestbase
* @build nsk.share.Terminator
@@ -101,6 +101,7 @@ public Map<String, String> call() {
map.put("vm.hasJFR", this::vmHasJFR);
map.put("vm.jvmti", this::vmHasJVMTI);
map.put("vm.cpu.features", this::cpuFeatures);
map.put("vm.pageSize", this::vmPageSize);
map.put("vm.rtm.cpu", this::vmRTMCPU);
map.put("vm.rtm.compiler", this::vmRTMCompiler);
map.put("vm.aot", this::vmAOT);
@@ -441,6 +442,13 @@ protected String vmCDSForArchivedJavaHeap() {
return "" + ("true".equals(vmCDS()) && WB.isJavaHeapArchiveSupported());
}

/**
* @return System page size in bytes.
*/
protected String vmPageSize() {
return "" + WB.getVMPageSize();
}

/**
* Check if Graal is used as JIT compiler.
*

0 comments on commit 19c4f8b

Please sign in to comment.