< prev index next >

src/hotspot/share/gc/z/zObjectAllocator.cpp

Print this page

        

*** 61,79 **** ZPage* ZObjectAllocator::alloc_page(uint8_t type, size_t size, ZAllocationFlags flags) { ZPage* const page = ZHeap::heap()->alloc_page(type, size, flags); if (page != NULL) { // Increment used bytes ! Atomic::add(size, _used.addr()); } return page; } void ZObjectAllocator::undo_alloc_page(ZPage* page) { // Increment undone bytes ! Atomic::add(page->size(), _undone.addr()); ZHeap::heap()->undo_alloc_page(page); } uintptr_t ZObjectAllocator::alloc_object_in_shared_page(ZPage** shared_page, --- 61,79 ---- ZPage* ZObjectAllocator::alloc_page(uint8_t type, size_t size, ZAllocationFlags flags) { ZPage* const page = ZHeap::heap()->alloc_page(type, size, flags); if (page != NULL) { // Increment used bytes ! Atomic::add(_used.addr(), size); } return page; } void ZObjectAllocator::undo_alloc_page(ZPage* page) { // Increment undone bytes ! Atomic::add(_undone.addr(), page->size()); ZHeap::heap()->undo_alloc_page(page); } uintptr_t ZObjectAllocator::alloc_object_in_shared_page(ZPage** shared_page,
< prev index next >