< prev index next >

src/hotspot/share/code/compiledMethod.inline.hpp

Print this page

        

@@ -59,11 +59,11 @@
 }
 
 
 // class ExceptionCache methods
 
-inline int ExceptionCache::count() { return OrderAccess::load_acquire(&_count); }
+inline int ExceptionCache::count() { return Atomic::load_acquire(&_count); }
 
 address ExceptionCache::pc_at(int index) {
   assert(index >= 0 && index < count(),"");
   return _pc[index];
 }

@@ -72,9 +72,9 @@
   assert(index >= 0 && index < count(),"");
   return _handler[index];
 }
 
 // increment_count is only called under lock, but there may be concurrent readers.
-inline void ExceptionCache::increment_count() { OrderAccess::release_store(&_count, _count + 1); }
+inline void ExceptionCache::increment_count() { Atomic::release_store(&_count, _count + 1); }
 
 
 #endif // SHARE_CODE_COMPILEDMETHOD_INLINE_HPP
< prev index next >