< prev index next >

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

Print this page

        

*** 80,90 **** uint8_t page_type, size_t page_size, size_t size, ZAllocationFlags flags) { uintptr_t addr = 0; ! ZPage* page = OrderAccess::load_acquire(shared_page); if (page != NULL) { addr = page->alloc_object_atomic(size); } --- 80,90 ---- uint8_t page_type, size_t page_size, size_t size, ZAllocationFlags flags) { uintptr_t addr = 0; ! ZPage* page = Atomic::load_acquire(shared_page); if (page != NULL) { addr = page->alloc_object_atomic(size); }
*** 302,312 **** } size_t ZObjectAllocator::remaining() const { assert(ZThread::is_java(), "Should be a Java thread"); ! const ZPage* const page = OrderAccess::load_acquire(shared_small_page_addr()); if (page != NULL) { return page->remaining(); } return 0; --- 302,312 ---- } size_t ZObjectAllocator::remaining() const { assert(ZThread::is_java(), "Should be a Java thread"); ! const ZPage* const page = Atomic::load_acquire(shared_small_page_addr()); if (page != NULL) { return page->remaining(); } return 0;
< prev index next >