JDK-8318089 : Class space not marked as such with NMT when CDS is off
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 17,21,22
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-10-13
  • Updated: 2024-08-16
  • Resolved: 2023-10-19
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 17 JDK 21 JDK 22
17.0.13Fixed 21.0.2Fixed 22 b21Fixed
Related Reports
Duplicate :  
Description
If Xshare is off, we don't correctly register class space with NMT.
Comments
Fix Request (17u-dev): Same as for jdk21u.
09-08-2024

[jdk17u-fix-request] Approval Request from Andreas Steiner
09-08-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk17u-dev/pull/2794 Date: 2024-08-09 12:06:26 +0000
09-08-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u/pull/273 Date: 2023-10-20 08:17:19 +0000
23-10-2023

Fix Request (jdk21): This fixes a display problem in NMT, where the class space size is incorrectly shown as "unknown" memory. It applies cleanly and is very low-risk. Tests done: GHA (all green), manual
23-10-2023

Yes, affects 17 too, just tested it.
20-10-2023

If this is really fixed by JDK-8243535, as code comment says, does this issue also affect 17?
20-10-2023

Changeset: c0e154c8 Author: Thomas Stuefe <stuefe@openjdk.org> Date: 2023-10-19 06:25:53 +0000 URL: https://git.openjdk.org/jdk/commit/c0e154c876e586660b36af6441cd178bc8ebab89
19-10-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/16184 Date: 2023-10-13 14:32:15 +0000
13-10-2023