JDK-8362591 : Wrong argument warning when heap size larger than coops threshold
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 15,17,21,25
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-07-18
  • Updated: 2025-08-02
  • Resolved: 2025-07-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 26
26 b09Fixed
Related Reports
Relates :  
Description
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.
Comments
Changeset: 7a22b76b Branch: master Author: Thomas Stuefe <stuefe@openjdk.org> Date: 2025-07-24 05:09:31 +0000 URL: https://git.openjdk.org/jdk/commit/7a22b76b73e6a6906f191e59b7d2da238b401935
24-07-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/26439 Date: 2025-07-23 04:39:26 +0000
23-07-2025