File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
test/hotspot/jtreg/runtime/NMT Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 32
32
* java.management
33
33
* @build jdk.test.whitebox.WhiteBox
34
34
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
35
- * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:NativeMemoryTracking=summary -Xms32m -Xmx32m TotalMallocMmapDiffTest
35
+ * @run main/othervm -Xbootclasspath/a:. -XX:TieredStopAtLevel=1 -XX: +UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:NativeMemoryTracking=summary -Xms32m -Xmx32m TotalMallocMmapDiffTest
36
36
*
37
37
*/
38
38
43
43
public class TotalMallocMmapDiffTest {
44
44
private static final WhiteBox wb = WhiteBox .getWhiteBox ();
45
45
private static final long ALLOCATE_SIZE = 250 * 1024 * 1024 ; // 250MB
46
- private static final double FUDGE_FACTOR = 0.2 ;
47
- private static final double UPPER_BOUND = ALLOCATE_SIZE * (1 + FUDGE_FACTOR );
48
- private static final double LOWER_BOUND = ALLOCATE_SIZE * (1 - FUDGE_FACTOR );
46
+ private static final double FUDGE_FACTOR_UPPER = 0.3 ;
47
+ private static final double FUDGE_FACTOR_LOWER = 0.2 ;
48
+ private static final double UPPER_BOUND = ALLOCATE_SIZE * (1 + FUDGE_FACTOR_UPPER );
49
+ private static final double LOWER_BOUND = ALLOCATE_SIZE * (1 - FUDGE_FACTOR_LOWER );
49
50
50
51
public static void main (String [] args ) throws Exception {
51
52
You can’t perform that action at this time.
0 commit comments