< prev index next >
src/hotspot/share/gc/z/zHeap.cpp
Print this page
*** 271,287 ****
assert(SafepointSynchronize::is_at_safepoint(), "Should be at safepoint");
// Update statistics
ZStatSample(ZSamplerHeapUsedBeforeMark, used());
- // Retire TLABs
- _object_allocator.retire_tlabs();
-
// Flip address view
ZAddressMasks::flip_to_marked();
flip_views();
// Reset allocated/reclaimed/used statistics
_page_allocator.reset_statistics();
// Reset encountered/dropped/enqueued statistics
_reference_processor.reset_statistics();
--- 271,287 ----
assert(SafepointSynchronize::is_at_safepoint(), "Should be at safepoint");
// Update statistics
ZStatSample(ZSamplerHeapUsedBeforeMark, used());
// Flip address view
ZAddressMasks::flip_to_marked();
flip_views();
+ // Retire allocating pages
+ _object_allocator.retire_pages();
+
// Reset allocated/reclaimed/used statistics
_page_allocator.reset_statistics();
// Reset encountered/dropped/enqueued statistics
_reference_processor.reset_statistics();
*** 473,485 ****
// Flip address view
ZAddressMasks::flip_to_remapped();
flip_views();
- // Remap TLABs
- _object_allocator.remap_tlabs();
-
// Enter relocate phase
ZGlobalPhase = ZPhaseRelocate;
// Update statistics
ZStatHeap::set_at_relocate_start(capacity(), allocated(), used());
--- 473,482 ----
< prev index next >