Skip to content

Commit 0e24900

Browse files
committed
Fixes for TestUseCompressedOopsFlagsWithUlimit.java
1 parent d0142f3 commit 0e24900

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/hotspot/jtreg/gc/arguments/TestUseCompressedOopsFlagsWithUlimit.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
/*
2727
* @test TestUseCompressedOopsFlagsWithUlimit
2828
* @bug 8280761
29-
* @summary Verify correct UseCompressedOops when MaxRAM and MaxRAMPercentage
30-
* are specified with ulimit -v.
29+
* @summary Verify that ergonomic setting of UseCompressedOops adheres to ulimit -v
3130
* @library /test/lib
3231
* @library /
3332
* @requires vm.bits == "64"
@@ -91,9 +90,9 @@ public static void main(String args[]) throws Exception {
9190

9291
long oneG = 1L * 1024L * 1024L * 1024L;
9392

94-
// Args: ulimit, max_ram_percent, expected_coop
95-
// Setting MaxRAMPercentage explicitly to make the test more resilient.
96-
checkFlag(10 * oneG, 100, true);
93+
// Regardless of how much memory that is available on the machine, we should
94+
// always get compressed oops if we have set a ulimit below the COOPS limit.
95+
// We set MaxRAMPercentage explicitly to make the test more resilient.
9796
checkFlag(10 * oneG, 100, true);
9897
}
9998
}

0 commit comments

Comments
 (0)