<div dir="ltr"><br><div>With perm gen going away (and being replaced by metaspace) in JDK 8, it makes sense that the counter</div><div>sun.gc.policy.generations should be "2", rather than "3". However, in JDK 8 that counter still says 3.</div><div>As I understand, the intention was that this counter would allow you to (for example) know the range of</div><div>the sun.gc.generation.$num.* counters describing each of $num < sun.gc.policy.generations in the heap.</div><div>Recall that the erstwhile perm gen in JDK 7 used to be synonymous with sun.gc.generation.2, but the</div><div>JDK 8 avatars are now sun.gc.metaspace and sun.gc.compressedclassspace.</div><div><br></div><div>The fix is simple, and I can submit a patch. Is there an existing bug for this?</div><div><br></div><div>thanks!</div><div>-- ramki</div>































</div>