changeset 59252 | 623722a6aeb9 |
parent 59247 | 56bf71d64d51 |
child 59290 | 97d13893ec3c |
--- a/src/hotspot/share/runtime/interfaceSupport.cpp Mon Nov 25 12:32:40 2019 +0100 +++ b/src/hotspot/share/runtime/interfaceSupport.cpp Mon Nov 25 12:33:15 2019 +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)