JDK-8298912 : Make RelocationHolder::reloc const-correct
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 21
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2022-12-16
  • Updated: 2022-12-16
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
tbdUnresolved
Related Reports
Relates :  
Description
Currently RelocationHolder::reloc() is const, but returns a non-const pointer to its _relocbuf member (cast to Relocation*).  We should probably have two overloads, one for const and one non-const, returning a suitably const result.  There are callers that need to be fixed in order to do that.