Mercurial > hg > graal-jvmci-8
comparison src/share/vm/memory/threadLocalAllocBuffer.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 | a61af66fc99e |
children | 0fbdb4381b99 |
comparison
equal
deleted
inserted
replaced
480:d249b360e026 | 481:7d7a7c599c17 |
---|---|
98 // Waste accounting should be done in caller as appropriate; see, | 98 // Waste accounting should be done in caller as appropriate; see, |
99 // for example, clear_before_allocation(). | 99 // for example, clear_before_allocation(). |
100 void ThreadLocalAllocBuffer::make_parsable(bool retire) { | 100 void ThreadLocalAllocBuffer::make_parsable(bool retire) { |
101 if (end() != NULL) { | 101 if (end() != NULL) { |
102 invariants(); | 102 invariants(); |
103 MemRegion mr(top(), hard_end()); | 103 CollectedHeap::fill_with_object(top(), hard_end()); |
104 SharedHeap::fill_region_with_object(mr); | |
105 | 104 |
106 if (retire || ZeroTLAB) { // "Reset" the TLAB | 105 if (retire || ZeroTLAB) { // "Reset" the TLAB |
107 set_start(NULL); | 106 set_start(NULL); |
108 set_top(NULL); | 107 set_top(NULL); |
109 set_pf_top(NULL); | 108 set_pf_top(NULL); |