< prev index next >

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

Print this page

        

@@ -80,11 +80,11 @@
                                                         uint8_t page_type,
                                                         size_t page_size,
                                                         size_t size,
                                                         ZAllocationFlags flags) {
   uintptr_t addr = 0;
-  ZPage* page = OrderAccess::load_acquire(shared_page);
+  ZPage* page = Atomic::load_acquire(shared_page);
 
   if (page != NULL) {
     addr = page->alloc_object_atomic(size);
   }
 

@@ -302,11 +302,11 @@
 }
 
 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());
+  const ZPage* const page = Atomic::load_acquire(shared_small_page_addr());
   if (page != NULL) {
     return page->remaining();
   }
 
   return 0;
< prev index next >