comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp @ 3764:053d84a76d3d

7032531: G1: enhance GC logging to include more accurate eden / survivor size transitions Summary: This changeset extends the logging information generated by +PrintGCDetails to also print out separate size transitions for the eden, survivors, and old regions. Reviewed-by: ysr, brutisso
author tonyp
date Wed, 08 Jun 2011 15:31:51 -0400
parents 2aa9ddbb9e60
children c3f1170908be
comparison
equal deleted inserted replaced
3763:e66f38dd58a9 3764:053d84a76d3d
100 100
101 void empty_list(); 101 void empty_list();
102 bool is_empty() { return _length == 0; } 102 bool is_empty() { return _length == 0; }
103 size_t length() { return _length; } 103 size_t length() { return _length; }
104 size_t survivor_length() { return _survivor_length; } 104 size_t survivor_length() { return _survivor_length; }
105
106 // Currently we do not keep track of the used byte sum for the
107 // young list and the survivors and it'd be quite a lot of work to
108 // do so. When we'll eventually replace the young list with
109 // instances of HeapRegionLinkedList we'll get that for free. So,
110 // we'll report the more accurate information then.
111 size_t eden_used_bytes() {
112 assert(length() >= survivor_length(), "invariant");
113 return (length() - survivor_length()) * HeapRegion::GrainBytes;
114 }
115 size_t survivor_used_bytes() {
116 return survivor_length() * HeapRegion::GrainBytes;
117 }
105 118
106 void rs_length_sampling_init(); 119 void rs_length_sampling_init();
107 bool rs_length_sampling_more(); 120 bool rs_length_sampling_more();
108 void rs_length_sampling_next(); 121 void rs_length_sampling_next();
109 122