hotspot/src/share/vm/gc_implementation/g1/g1CollectedHeap.hpp
changeset 10001 8aa7f885326e
parent 10000 5bbb58b0dbb9
child 10236 c4256e927bed
equal deleted inserted replaced
10000:5bbb58b0dbb9 10001:8aa7f885326e
    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);