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