comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp @ 3778:5f6f2615433a

7049999: G1: Make the G1PrintHeapRegions output consistent and complete Summary: Extend and make more consistent the output from the G1PrintHeapRegions flag. Reviewed-by: johnc, jmasa
author tonyp
date Fri, 24 Jun 2011 12:38:49 -0400
parents e8b0b0392037
children 14a2fd14c0db
comparison
equal deleted inserted replaced
3777:e8b0b0392037 3778:5f6f2615433a
25 #ifndef SHARE_VM_GC_IMPLEMENTATION_G1_G1COLLECTEDHEAP_HPP 25 #ifndef SHARE_VM_GC_IMPLEMENTATION_G1_G1COLLECTEDHEAP_HPP
26 #define SHARE_VM_GC_IMPLEMENTATION_G1_G1COLLECTEDHEAP_HPP 26 #define SHARE_VM_GC_IMPLEMENTATION_G1_G1COLLECTEDHEAP_HPP
27 27
28 #include "gc_implementation/g1/concurrentMark.hpp" 28 #include "gc_implementation/g1/concurrentMark.hpp"
29 #include "gc_implementation/g1/g1AllocRegion.hpp" 29 #include "gc_implementation/g1/g1AllocRegion.hpp"
30 #include "gc_implementation/g1/g1HRPrinter.hpp"
30 #include "gc_implementation/g1/g1RemSet.hpp" 31 #include "gc_implementation/g1/g1RemSet.hpp"
31 #include "gc_implementation/g1/g1MonitoringSupport.hpp" 32 #include "gc_implementation/g1/g1MonitoringSupport.hpp"
32 #include "gc_implementation/g1/heapRegionSeq.hpp" 33 #include "gc_implementation/g1/heapRegionSeq.hpp"
33 #include "gc_implementation/g1/heapRegionSets.hpp" 34 #include "gc_implementation/g1/heapRegionSets.hpp"
34 #include "gc_implementation/shared/hSpaceCounters.hpp" 35 #include "gc_implementation/shared/hSpaceCounters.hpp"
295 size_t _in_cset_fast_test_length; 296 size_t _in_cset_fast_test_length;
296 297
297 volatile unsigned _gc_time_stamp; 298 volatile unsigned _gc_time_stamp;
298 299
299 size_t* _surviving_young_words; 300 size_t* _surviving_young_words;
301
302 G1HRPrinter _hr_printer;
300 303
301 void setup_surviving_young_words(); 304 void setup_surviving_young_words();
302 void update_surviving_young_words(size_t* surv_young_words); 305 void update_surviving_young_words(size_t* surv_young_words);
303 void cleanup_surviving_young_words(); 306 void cleanup_surviving_young_words();
304 307
633 636
634 unsigned int full_collections_completed() { 637 unsigned int full_collections_completed() {
635 return _full_collections_completed; 638 return _full_collections_completed;
636 } 639 }
637 640
641 G1HRPrinter* hr_printer() { return &_hr_printer; }
642
638 protected: 643 protected:
639 644
640 // Shrink the garbage-first heap by at most the given size (in bytes!). 645 // Shrink the garbage-first heap by at most the given size (in bytes!).
641 // (Rounds down to a HeapRegion boundary.) 646 // (Rounds down to a HeapRegion boundary.)
642 virtual void shrink(size_t expand_bytes); 647 virtual void shrink(size_t expand_bytes);