src/hotspot/share/runtime/arguments.cpp
changeset 55506 1761df20fa12
parent 55430 82deab2dd59e
parent 55501 c9590e526d19
child 55524 b279ae9843b8
--- a/src/hotspot/share/runtime/arguments.cpp	Wed Jun 26 13:18:38 2019 -0400
+++ b/src/hotspot/share/runtime/arguments.cpp	Wed Jun 26 22:16:00 2019 +0200
@@ -1815,6 +1815,10 @@
       // was not specified.
       if (reasonable_max > max_coop_heap) {
         if (FLAG_IS_ERGO(UseCompressedOops) && override_coop_limit) {
+          log_info(cds)("UseCompressedOops and UseCompressedClassPointers have been disabled due to"
+            " max heap " SIZE_FORMAT " > compressed oop heap " SIZE_FORMAT ". "
+            "Please check the setting of MaxRAMPercentage %5.2f."
+            ,(size_t)reasonable_max, (size_t)max_coop_heap, MaxRAMPercentage);
           FLAG_SET_ERGO(UseCompressedOops, false);
           FLAG_SET_ERGO(UseCompressedClassPointers, false);
         } else {