< prev index next >
src/hotspot/share/oops/cpCache.cpp
Print this page
@@ -157,11 +157,11 @@
// updated it and we don't want to overwrite that value. Don't
// bother trying to update it once it's nonzero but always make
// 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);
}
< prev index next >