Commit 791b427 authored and committed Jan 23, 2024
1 parent bcaad51 commit 791b427 Copy full SHA for 791b427
File tree 1 file changed +4
-4
lines changed
test/jdk/jdk/internal/platform/docker
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -72,12 +72,12 @@ private static void testMemoryFailCount() {
72
72
} else {
73
73
long count = Metrics .systemMetrics ().getMemoryFailCount ();
74
74
75
- // Allocate 512M of data
76
- byte [][] bytes = new byte [64 ][];
75
+ // Allocate 512M of data in 1M chunks per iteration
76
+ byte [][] bytes = new byte [64 * 8 ][];
77
77
boolean atLeastOneAllocationWorked = false ;
78
- for (int i = 0 ; i < 64 ; i ++) {
78
+ for (int i = 0 ; i < 64 * 8 ; i ++) {
79
79
try {
80
- bytes [i ] = new byte [8 * 1024 * 1024 ];
80
+ bytes [i ] = new byte [1024 * 1024 ];
81
81
atLeastOneAllocationWorked = true ;
82
82
// Break out as soon as we see an increase in failcount
83
83
// to avoid getting killed by the OOM killer.
You can’t perform that action at this time.
0 commit comments