8079208: gc/g1/TestLargePageUseForAuxMemory.java fails due to not considering page allocation granularity for setup
authortschatzl
Wed, 24 Jun 2015 09:41:11 +0200
changeset 31320 5358f1744a3f
parent 31319 6a96ae34c904
child 31321 7d53b607dfd7
child 31570 ba79fda027f2
8079208: gc/g1/TestLargePageUseForAuxMemory.java fails due to not considering page allocation granularity for setup Summary: The test case needs to use the OS'es allocation granularity to properly determine the boundary values for the test. Reviewed-by: dfazunen, jmasa, ecaspole
test/lib/sun/hotspot/WhiteBox.java
--- a/test/lib/sun/hotspot/WhiteBox.java	Tue Jun 23 10:20:10 2015 -0700
+++ b/test/lib/sun/hotspot/WhiteBox.java	Wed Jun 24 09:41:11 2015 +0200
@@ -83,6 +83,7 @@
 
   public native int  getHeapOopSize();
   public native int  getVMPageSize();
+  public native long getVMAllocationGranularity();
   public native long getVMLargePageSize();
 
   private native boolean isObjectInOldGen0(Object o);