< prev index next >
src/share/vm/gc/g1/g1CollectionSet.hpp
Print this page
@@ -55,10 +55,13 @@
// the incrementally built collection set at the start of an evacuation
// pause, and incremented in finalize_old_part() when adding old regions
// (if any) to the collection set.
size_t _bytes_used_before;
+ // The sum of live bytes in the collection set, set as described above.
+ size_t _bytes_live_before;
+
size_t _recorded_rs_lengths;
// The associated information that is maintained while the incremental
// collection set is being built with young regions. Used to populate
// the recorded info for the evacuation pause.
@@ -79,10 +82,13 @@
// The number of bytes in the incrementally built collection set.
// Used to set _collection_set_bytes_used_before at the start of
// an evacuation pause.
size_t _inc_bytes_used_before;
+ // The number of live bytes in the incrementally built collection set.
+ size_t _inc_bytes_live_before;
+
// The RSet lengths recorded for regions in the CSet. It is updated
// by the thread that adds a new region to the CSet. We assume that
// only one thread can be allocating a new CSet region (currently,
// it does so after taking the Heap_lock) hence no need to
// synchronize updates to this field.
@@ -171,10 +177,14 @@
void reset_bytes_used_before() {
_bytes_used_before = 0;
}
+ void reset_bytes_live_before() {
+ _bytes_live_before = 0;
+ }
+
// Choose a new collection set. Marks the chosen regions as being
// "in_collection_set", and links them together. The head and number of
// the collection set are available via access methods.
double finalize_young_part(double target_pause_time_ms);
void finalize_old_part(double time_remaining_ms);
< prev index next >