comparison src/share/vm/memory/genMarkSweep.cpp @ 263:12eea04c8b06

6672698: mangle_unused_area() should not remangle the entire heap at each collection. Summary: Maintain a high water mark for the allocations in a space and mangle only up to that high water mark. Reviewed-by: ysr, apetrusenko
author jmasa
date Wed, 09 Jul 2008 15:08:55 -0700
parents ba764ed4b6f2
children 850fdf70db2b
comparison
equal deleted inserted replaced
225:286bee59f34b 263:12eea04c8b06
188 #endif 188 #endif
189 } 189 }
190 190
191 191
192 void GenMarkSweep::deallocate_stacks() { 192 void GenMarkSweep::deallocate_stacks() {
193
194 GenCollectedHeap* gch = GenCollectedHeap::heap();
195 gch->release_scratch();
196
193 if (_preserved_oop_stack) { 197 if (_preserved_oop_stack) {
194 delete _preserved_mark_stack; 198 delete _preserved_mark_stack;
195 _preserved_mark_stack = NULL; 199 _preserved_mark_stack = NULL;
196 delete _preserved_oop_stack; 200 delete _preserved_oop_stack;
197 _preserved_oop_stack = NULL; 201 _preserved_oop_stack = NULL;