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) {
115 _survivor_overflow = state;
116 }
117 // Adaptive size policy support. When the young generation/old generation
118 // boundary moves, _young_generation_boundary must be reset
119 static void set_young_generation_boundary(HeapWord* v) {
120 _young_generation_boundary = v;
121 if (UseCompressedOops) {
|
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 static ParallelScavengeTracer* const gc_tracer() { return &_gc_tracer; }
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) {
116 _survivor_overflow = state;
117 }
118 // Adaptive size policy support. When the young generation/old generation
119 // boundary moves, _young_generation_boundary must be reset
120 static void set_young_generation_boundary(HeapWord* v) {
121 _young_generation_boundary = v;
122 if (UseCompressedOops) {
|