src/hotspot/share/code/compiledMethod.inline.hpp
changeset 59247 56bf71d64d51
parent 53244 9807daeb47c4
child 59290 97d13893ec3c
--- a/src/hotspot/share/code/compiledMethod.inline.hpp	Mon Nov 25 14:06:13 2019 +0100
+++ b/src/hotspot/share/code/compiledMethod.inline.hpp	Mon Nov 25 12:22:13 2019 +0100
@@ -61,7 +61,7 @@
 
 // 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(),"");
@@ -74,7 +74,7 @@
 }
 
 // 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