< prev index next >

src/hotspot/share/prims/jvm.cpp

Print this page

        

@@ -232,11 +232,11 @@
   JVMHistogramElement::JVMHistogramElement(const char* elementName) {
     _name = elementName;
     uintx count = 0;
 
     while (Atomic::cmpxchg(1, &JVMHistogram_lock, 0) != 0) {
-      while (OrderAccess::load_acquire(&JVMHistogram_lock) != 0) {
+      while (Atomic::load_acquire(&JVMHistogram_lock) != 0) {
         count +=1;
         if ( (WarnOnStalledSpinLock > 0)
           && (count % WarnOnStalledSpinLock == 0)) {
           warning("JVMHistogram_lock seems to be stalled");
         }
< prev index next >