src/hotspot/share/oops/cpCache.cpp
changeset 59252 623722a6aeb9
parent 59247 56bf71d64d51
child 59290 97d13893ec3c
--- a/src/hotspot/share/oops/cpCache.cpp	Mon Nov 25 12:32:40 2019 +0100
+++ b/src/hotspot/share/oops/cpCache.cpp	Mon Nov 25 12:33:15 2019 +0100
@@ -159,7 +159,7 @@
   // sure that the final parameter size agrees with what was passed.
   if (_flags == 0) {
     intx newflags = (value & parameter_size_mask);
-    Atomic::cmpxchg(newflags, &_flags, (intx)0);
+    Atomic::cmpxchg(&_flags, (intx)0, newflags);
   }
   guarantee(parameter_size() == value,
             "size must not change: parameter_size=%d, value=%d", parameter_size(), value);