JDK-8321920 : C2: Node_List should check nesting depth of ResourceMark when reallocating
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 23
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2023-12-12
  • Updated: 2025-06-02
  • Resolved: 2025-06-02
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.
Other
tbdResolved
Related Reports
Duplicate :  
Description
I have had nasty memory bugs with ResourceMark and Node_List before that were resource area allocated.

We already do nesting check with GrowableArray, and we should do the same for Node_List.
Comments
We could assert on reallocate, or on append/push etc, which would be a stronger restriction.
14-12-2023

Alternative: refactor it to be a GrowableArray. Not sure if that is desirable or feasible.
12-12-2023