< prev index next >

src/share/vm/gc_implementation/parallelScavenge/psScavenge.hpp

Print this page




  75   static ParallelScavengeTracer _gc_tracer;          // GC tracing
  76   // The lowest address possible for the young_gen.
  77   // This is used to decide if an oop should be scavenged,
  78   // cards should be marked, etc.
  79   static HeapWord*            _young_generation_boundary;
  80   // Used to optimize compressed oops young gen boundary checking.
  81   static uintptr_t            _young_generation_boundary_compressed;
  82   static Stack<markOop, mtGC> _preserved_mark_stack; // List of marks to be restored after failed promotion
  83   static Stack<oop, mtGC>     _preserved_oop_stack;  // List of oops that need their mark restored.
  84   static CollectorCounters*   _counters;             // collector performance counters
  85 
  86   static void clean_up_failed_promotion();
  87 
  88   static bool should_attempt_scavenge();
  89 
  90   static HeapWord* to_space_top_before_gc() { return _to_space_top_before_gc; }
  91   static inline void save_to_space_top_before_gc();
  92 
  93   // Private accessors
  94   static CardTableExtension* const card_table()       { assert(_card_table != NULL, "Sanity"); return _card_table; }

  95 
  96  public:
  97   // Accessors
  98   static uint             tenuring_threshold()  { return _tenuring_threshold; }
  99   static elapsedTimer*    accumulated_time()    { return &_accumulated_time; }
 100   static int              consecutive_skipped_scavenges()
 101     { return _consecutive_skipped_scavenges; }
 102 
 103   // Performance Counters
 104   static CollectorCounters* counters()           { return _counters; }
 105 
 106   // Used by scavenge_contents && psMarkSweep
 107   static ReferenceProcessor* const reference_processor() {
 108     assert(_ref_processor != NULL, "Sanity");
 109     return _ref_processor;
 110   }
 111   // Used to add tasks
 112   static GCTaskManager* const gc_task_manager();
 113   // The promotion managers tell us if they encountered overflow
 114   static void set_survivor_overflow(bool state) {




  75   static ParallelScavengeTracer _gc_tracer;          // GC tracing
  76   // The lowest address possible for the young_gen.
  77   // This is used to decide if an oop should be scavenged,
  78   // cards should be marked, etc.
  79   static HeapWord*            _young_generation_boundary;
  80   // Used to optimize compressed oops young gen boundary checking.
  81   static uintptr_t            _young_generation_boundary_compressed;
  82   static Stack<markOop, mtGC> _preserved_mark_stack; // List of marks to be restored after failed promotion
  83   static Stack<oop, mtGC>     _preserved_oop_stack;  // List of oops that need their mark restored.
  84   static CollectorCounters*   _counters;             // collector performance counters
  85 
  86   static void clean_up_failed_promotion();
  87 
  88   static bool should_attempt_scavenge();
  89 
  90   static HeapWord* to_space_top_before_gc() { return _to_space_top_before_gc; }
  91   static inline void save_to_space_top_before_gc();
  92 
  93   // Private accessors
  94   static CardTableExtension* const card_table()       { assert(_card_table != NULL, "Sanity"); return _card_table; }
  95   static const ParallelScavengeTracer* gc_tracer() { return &_gc_tracer; }
  96 
  97  public:
  98   // Accessors
  99   static uint             tenuring_threshold()  { return _tenuring_threshold; }
 100   static elapsedTimer*    accumulated_time()    { return &_accumulated_time; }
 101   static int              consecutive_skipped_scavenges()
 102     { return _consecutive_skipped_scavenges; }
 103 
 104   // Performance Counters
 105   static CollectorCounters* counters()           { return _counters; }
 106 
 107   // Used by scavenge_contents && psMarkSweep
 108   static ReferenceProcessor* const reference_processor() {
 109     assert(_ref_processor != NULL, "Sanity");
 110     return _ref_processor;
 111   }
 112   // Used to add tasks
 113   static GCTaskManager* const gc_task_manager();
 114   // The promotion managers tell us if they encountered overflow
 115   static void set_survivor_overflow(bool state) {


< prev index next >