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
--- 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);