JDK-8080345 : With perm gen gone, perfdata counter sun.gc.policy.generations should be 2, not 3
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 8
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2015-05-14
  • Updated: 2017-12-15
  • Resolved: 2017-11-27
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 10
10 b36Fixed
Related Reports
Relates :  
Description
See http://mail.openjdk.java.net/pipermail/hotspot-gc-dev/2015-May/013391.html 

"With perm gen going away (and being replaced by metaspace) in JDK 8, it makes sense that the counter
sun.gc.policy.generations should be "2", rather than "3". However, in JDK 8 that counter still says 3.
As I understand, the intention was that this counter would allow you to (for example) know the range of
the sun.gc.generation.$num.* counters describing each of $num < sun.gc.policy.generations in the heap.
Recall that the erstwhile perm gen in JDK 7 used to be synonymous with sun.gc.generation.2, but the
JDK 8 avatars are now sun.gc.metaspace and sun.gc.compressedclassspace."

Comments
http://cr.openjdk.java.net/~ysr/JDK-8080345/webrev.00/
01-06-2015

ILW = Low (reporting wrong number of generations), High (always), High (none) = P4
22-05-2015

Attached perfdata.patch which is a minmal fix for the issue, for review, shepherding etc.
14-05-2015