G1MonitoringSupport unused generation counter

Sundara Mohan M email.sundarms at gmail.com
Wed Jul 19 20:24:50 UTC 2017


Hi,

Was trying to understand why old generation mx bean was notified in case of
G1GC and saw following code

G1MonitoringSupport.hpp
  //  young collection set counters.  The _eden_counters,
  // _from_counters, and _to_counters are associated with
  // this "generational" counter.
  GenerationCounters*  _young_collection_counters;
  //  old collection set counters. The _old_space_counters
  // below are associated with this "generational" counter.
  GenerationCounters*  _old_collection_counters;

I don't see these counters updated anywhere. What is the use of these
counters in G1GC.


only following is updated in g1CollectedHeap.cpp
  //  incremental collections both young and mixed
  CollectorCounters*   _incremental_collection_counters;
  //  full stop-the-world collections
  CollectorCounters*   _full_collection_counters;

Is there any mail thread/doc which explains more about this.

Thanks,
Sundar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/hotspot-gc-dev/attachments/20170719/9594192b/attachment.htm>


More information about the hotspot-gc-dev mailing list