< prev index next >

src/hotspot/share/runtime/interfaceSupport.cpp

Print this page

        

@@ -86,11 +86,11 @@
   static volatile int RuntimeHistogram_lock = 0;
   _name = elementName;
   uintx count = 0;
 
   while (Atomic::cmpxchg(1, &RuntimeHistogram_lock, 0) != 0) {
-    while (OrderAccess::load_acquire(&RuntimeHistogram_lock) != 0) {
+    while (Atomic::load_acquire(&RuntimeHistogram_lock) != 0) {
       count +=1;
       if ( (WarnOnStalledSpinLock > 0)
         && (count % WarnOnStalledSpinLock == 0)) {
         warning("RuntimeHistogram_lock seems to be stalled");
       }
< prev index next >