Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8362591

Wrong argument warning when heap size larger than coops threshold

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 26
    • 15, 17, 21, 25
    • hotspot
    • gc
    • b09

      See:

      ```
            // If user specified flags prioritizing os physical
            // memory limits, then disable compressed oops if
            // limits exceed max_coop_heap and UseCompressedOops
            // 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"
                  " 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);
                FLAG_SET_ERGO(UseCompressedOops, false);
              } else {
                reasonable_max = MIN2(reasonable_max, max_coop_heap);
              }
            }
      ```

      UseCompressedClassPointers has long been separated from UseCompressedOops, so the text should be adjusted.

            stuefe Thomas Stuefe
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: