--- old/src/hotspot/share/runtime/interfaceSupport.cpp 2019-11-21 11:58:27.244282246 +0100 +++ new/src/hotspot/share/runtime/interfaceSupport.cpp 2019-11-21 11:58:26.736273669 +0100 @@ -87,7 +87,7 @@ _name = elementName; uintx count = 0; - while (Atomic::cmpxchg(1, &RuntimeHistogram_lock, 0) != 0) { + while (Atomic::cmpxchg(&RuntimeHistogram_lock, 0, 1) != 0) { while (Atomic::load_acquire(&RuntimeHistogram_lock) != 0) { count +=1; if ( (WarnOnStalledSpinLock > 0)