mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-14 07:29:51 +00:00
8362591: Wrong argument warning when heap size larger than coops threshold
Reviewed-by: dholmes
This commit is contained in:
parent
0ba2942c6e
commit
7a22b76b73
@ -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);
|
||||
|
||||
@ -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.");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user