JDK-8006040 : NPG: on_stack processing wastes space in ConstantPool
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-01-10
  • Updated: 2014-06-26
  • Resolved: 2013-01-25
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 8 Other
8Fixed hs25Fixed
Description
The bool _on_stack field is added to constant pool and causes a big gap.  There's a flag word that it should be added to.
Also MetadataMarkOnStack was excluded by the minimal vm and it's needed if you have methods that have been relocated due to the presence of jsr bytecodes.   This isn't just used for redefined classes.
Comments
> Also MetadataMarkOnStack was excluded by the minimal vm and it's needed if you have methods that have been relocated due to the presence of jsr bytecodes Doesn't that imply this should be more than a P4?
11-01-2013