equal
deleted
inserted
replaced
182 double non_young_other_time_ms() const; |
182 double non_young_other_time_ms() const; |
183 double constant_other_time_ms(double pause_time_ms) const; |
183 double constant_other_time_ms(double pause_time_ms) const; |
184 |
184 |
185 G1CollectionSetChooser* cset_chooser() const; |
185 G1CollectionSetChooser* cset_chooser() const; |
186 |
186 |
187 // The number of bytes copied during the GC. |
|
188 size_t _bytes_copied_during_gc; |
|
189 |
|
190 // Stash a pointer to the g1 heap. |
187 // Stash a pointer to the g1 heap. |
191 G1CollectedHeap* _g1h; |
188 G1CollectedHeap* _g1h; |
192 |
189 |
193 G1GCPhaseTimes* _phase_times; |
190 G1GCPhaseTimes* _phase_times; |
194 |
191 |
318 |
315 |
319 bool about_to_start_mixed_phase() const; |
316 bool about_to_start_mixed_phase() const; |
320 |
317 |
321 // Record the start and end of an evacuation pause. |
318 // Record the start and end of an evacuation pause. |
322 void record_collection_pause_start(double start_time_sec); |
319 void record_collection_pause_start(double start_time_sec); |
323 virtual void record_collection_pause_end(double pause_time_ms, size_t heap_used_bytes_before_gc); |
320 virtual void record_collection_pause_end(double pause_time_ms); |
324 |
321 |
325 // Record the start and end of a full collection. |
322 // Record the start and end of a full collection. |
326 void record_full_collection_start(); |
323 void record_full_collection_start(); |
327 virtual void record_full_collection_end(); |
324 virtual void record_full_collection_end(); |
328 |
325 |
336 // Record start, end, and completion of cleanup. |
333 // Record start, end, and completion of cleanup. |
337 void record_concurrent_mark_cleanup_start(); |
334 void record_concurrent_mark_cleanup_start(); |
338 void record_concurrent_mark_cleanup_end(); |
335 void record_concurrent_mark_cleanup_end(); |
339 |
336 |
340 void print_phases(); |
337 void print_phases(); |
341 |
|
342 // Record how much space we copied during a GC. This is typically |
|
343 // called when a GC alloc region is being retired. |
|
344 void record_bytes_copied_during_gc(size_t bytes) { |
|
345 _bytes_copied_during_gc += bytes; |
|
346 } |
|
347 |
|
348 // The amount of space we copied during a GC. |
|
349 size_t bytes_copied_during_gc() const { |
|
350 return _bytes_copied_during_gc; |
|
351 } |
|
352 |
338 |
353 bool next_gc_should_be_mixed(const char* true_action_str, |
339 bool next_gc_should_be_mixed(const char* true_action_str, |
354 const char* false_action_str) const; |
340 const char* false_action_str) const; |
355 |
341 |
356 // Calculate and return the number of initial and optional old gen regions from |
342 // Calculate and return the number of initial and optional old gen regions from |