8362591: Wrong argument warning when heap size larger than coops threshold

Reviewed-by: dholmes
This commit is contained in:
Thomas Stuefe 2025-07-24 05:09:31 +00:00
parent 0ba2942c6e
commit 7a22b76b73
2 changed files with 2 additions and 2 deletions

View File

@ -1593,7 +1593,7 @@ void Arguments::set_heap_size() {
// was not specified.
if (reasonable_max > max_coop_heap) {
if (FLAG_IS_ERGO(UseCompressedOops) && override_coop_limit) {
aot_log_info(aot)("UseCompressedOops and UseCompressedClassPointers have been disabled due to"
aot_log_info(aot)("UseCompressedOops disabled due to"
" max heap %zu > compressed oop heap %zu. "
"Please check the setting of MaxRAMPercentage %5.2f."
,(size_t)reasonable_max, (size_t)max_coop_heap, MaxRAMPercentage);

View File

@ -58,7 +58,7 @@ public class SysDictCrash {
try {
TestCommon.checkDump(output);
} catch (java.lang.RuntimeException re) {
if (!output.getStdout().contains("UseCompressedOops and UseCompressedClassPointers have been disabled due to")) {
if (!output.getStdout().contains("UseCompressedOops disabled due to")) {
throw re;
} else {
System.out.println("Shared archive was not created due to UseCompressedOops and UseCompressedClassPointers have been disabled.");