Mercurial > hg > truffle
comparison src/share/vm/memory/tenuredGeneration.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 | d1605aabd0a1 |
children | 0fbdb4381b99 |
comparison
equal
deleted
inserted
replaced
480:d249b360e026 | 481:7d7a7c599c17 |
---|---|
385 if (buf->contains(obj)) { | 385 if (buf->contains(obj)) { |
386 guarantee(buf->contains(obj + word_sz - 1), | 386 guarantee(buf->contains(obj + word_sz - 1), |
387 "should contain whole object"); | 387 "should contain whole object"); |
388 buf->undo_allocation(obj, word_sz); | 388 buf->undo_allocation(obj, word_sz); |
389 } else { | 389 } else { |
390 SharedHeap::fill_region_with_object(MemRegion(obj, word_sz)); | 390 CollectedHeap::fill_with_object(obj, word_sz); |
391 } | 391 } |
392 } | 392 } |
393 | 393 |
394 void TenuredGeneration::par_promote_alloc_done(int thread_num) { | 394 void TenuredGeneration::par_promote_alloc_done(int thread_num) { |
395 ParGCAllocBufferWithBOT* buf = _alloc_buffers[thread_num]; | 395 ParGCAllocBufferWithBOT* buf = _alloc_buffers[thread_num]; |