JDK-7097586 : G1: improve the per-space output when using jmap -heap
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs23
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-10-03
  • Updated: 2013-10-04
  • Resolved: 2012-03-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 7 JDK 8 Other
7u4Fixed 8Fixed hs23Fixed
After 7097048, the jmap -heap output looks similar to that of the other GCs (see below). It might be helpful to extend it a bit with some G1-specific information, like region size / number of regions / etc. Additionally, given that for G1 the "To" survivor space will always be empty, maybe we want to remove that section and rename the "From Space" section as simply "Survivor Space". (Thanks to Bengt for these suggestions.)

EVALUATION http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/0b3d1ec6eaee

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-gc/hotspot/rev/0b3d1ec6eaee