< prev index next >
src/hotspot/share/gc/shared/memAllocator.cpp
Print this page
*** 318,328 ****
// Discard tlab and allocate a new one.
// To minimize fragmentation, the last TLAB may be smaller than the rest.
size_t new_tlab_size = tlab.compute_size(_word_size);
! tlab.clear_before_allocation();
if (new_tlab_size == 0) {
return NULL;
}
--- 318,328 ----
// Discard tlab and allocate a new one.
// To minimize fragmentation, the last TLAB may be smaller than the rest.
size_t new_tlab_size = tlab.compute_size(_word_size);
! tlab.retire_before_allocation();
if (new_tlab_size == 0) {
return NULL;
}
< prev index next >