comparison src/share/vm/gc_implementation/parNew/parNewGeneration.cpp @ 481:7d7a7c599c17

6578152: fill_region_with_object has usability and safety issues Reviewed-by: apetrusenko, ysr
author jcoomes
date Thu, 11 Dec 2008 12:05:08 -0800
parents 27a80744a83b
children 5cfd8d19e546
comparison
equal deleted inserted replaced
480:d249b360e026 481:7d7a7c599c17
199 if (to_space_alloc_buffer()->contains(obj)) { 199 if (to_space_alloc_buffer()->contains(obj)) {
200 assert(to_space_alloc_buffer()->contains(obj + word_sz - 1), 200 assert(to_space_alloc_buffer()->contains(obj + word_sz - 1),
201 "Should contain whole object."); 201 "Should contain whole object.");
202 to_space_alloc_buffer()->undo_allocation(obj, word_sz); 202 to_space_alloc_buffer()->undo_allocation(obj, word_sz);
203 } else { 203 } else {
204 SharedHeap::fill_region_with_object(MemRegion(obj, word_sz)); 204 CollectedHeap::fill_with_object(obj, word_sz);
205 } 205 }
206 } 206 }
207 207
208 class ParScanThreadStateSet: private ResourceArray { 208 class ParScanThreadStateSet: private ResourceArray {
209 public: 209 public: