< prev index next >

src/hotspot/share/oops/cpCache.cpp

Print this page

        

*** 157,167 **** // 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); } guarantee(parameter_size() == value, "size must not change: parameter_size=%d, value=%d", parameter_size(), value); } --- 157,167 ---- // 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(&_flags, (intx)0, newflags); } guarantee(parameter_size() == value, "size must not change: parameter_size=%d, value=%d", parameter_size(), value); }
< prev index next >