145 size_t used_in_words() const;
146 size_t free_in_words() const;
147
148 // The max this generation can grow to
149 size_t max_size() const { return _reserved.byte_size(); }
150
151 // The max this generation can grow to if the boundary between
152 // the generations are allowed to move.
153 size_t gen_size_limit() const { return _max_gen_size; }
154
155 bool is_maximal_no_gc() const {
156 return true; // Never expands except at a GC
157 }
158
159 // Allocation
160 HeapWord* allocate(size_t word_size) {
161 HeapWord* result = eden_space()->cas_allocate(word_size);
162 return result;
163 }
164
165 HeapWord** top_addr() const { return eden_space()->top_addr(); }
166 HeapWord** end_addr() const { return eden_space()->end_addr(); }
167
168 // Iteration.
169 void oop_iterate(ExtendedOopClosure* cl);
170 void object_iterate(ObjectClosure* cl);
171
172 virtual void reset_after_change();
173 virtual void reset_survivors_after_shrink();
174
175 // Performance Counter support
176 void update_counters();
177
178 // Debugging - do not use for time critical operations
179 void print() const;
180 void print_on(outputStream* st) const;
181 void print_used_change(size_t prev_used) const;
182 virtual const char* name() const { return "PSYoungGen"; }
183
184 void verify();
185
|
145 size_t used_in_words() const;
146 size_t free_in_words() const;
147
148 // The max this generation can grow to
149 size_t max_size() const { return _reserved.byte_size(); }
150
151 // The max this generation can grow to if the boundary between
152 // the generations are allowed to move.
153 size_t gen_size_limit() const { return _max_gen_size; }
154
155 bool is_maximal_no_gc() const {
156 return true; // Never expands except at a GC
157 }
158
159 // Allocation
160 HeapWord* allocate(size_t word_size) {
161 HeapWord* result = eden_space()->cas_allocate(word_size);
162 return result;
163 }
164
165 HeapWord* volatile* top_addr() const { return eden_space()->top_addr(); }
166 HeapWord** end_addr() const { return eden_space()->end_addr(); }
167
168 // Iteration.
169 void oop_iterate(ExtendedOopClosure* cl);
170 void object_iterate(ObjectClosure* cl);
171
172 virtual void reset_after_change();
173 virtual void reset_survivors_after_shrink();
174
175 // Performance Counter support
176 void update_counters();
177
178 // Debugging - do not use for time critical operations
179 void print() const;
180 void print_on(outputStream* st) const;
181 void print_used_change(size_t prev_used) const;
182 virtual const char* name() const { return "PSYoungGen"; }
183
184 void verify();
185
|