< prev index next >

src/hotspot/share/gc/g1/g1CollectedHeap.hpp

Print this page
rev 59939 : [mq]: 8243974-investigate-millis-since-last-gc-move

*** 161,170 **** --- 161,177 ---- SoftRefPolicy _soft_ref_policy; static size_t _humongous_object_threshold_in_words; + // Records the end of the most recent collection regardless of type. + Ticks _collection_pause_end; + + // For CollectedHeap::millis_since_last_gc() support. Records end of the last + // collection that visited all objects. + jlong _time_of_last_gc_ns; + // These sets keep track of old, archive and humongous regions respectively. HeapRegionSet _old_set; HeapRegionSet _archive_set; HeapRegionSet _humongous_set;
*** 1286,1298 **** virtual size_t max_capacity() const; // Return the size of reserved memory. Returns different value than max_capacity() when AllocateOldGenAt is used. virtual size_t max_reserved_capacity() const; virtual jlong millis_since_last_gc(); - // Convenience function to be used in situations where the heap type can be // asserted to be this type. static G1CollectedHeap* heap() { return named_heap<G1CollectedHeap>(CollectedHeap::G1); } --- 1293,1305 ---- virtual size_t max_capacity() const; // Return the size of reserved memory. Returns different value than max_capacity() when AllocateOldGenAt is used. virtual size_t max_reserved_capacity() const; + Ticks last_collection_pause_end() const { return _collection_pause_end; } virtual jlong millis_since_last_gc(); // Convenience function to be used in situations where the heap type can be // asserted to be this type. static G1CollectedHeap* heap() { return named_heap<G1CollectedHeap>(CollectedHeap::G1); }
< prev index next >