< prev index next >

src/hotspot/share/oops/cpCache.cpp

Print this page
rev 47409 : [mq]: review_comments_erik_and_david
rev 47406 : [mq]: assembler_cmpxchg
rev 47400 : [mq]: cmpxchg_ptr
rev 47216 : 8187443: Forest Consolidation: Move files to unified layout
Reviewed-by: darcy, ihse

*** 109,120 **** assert(f1 != NULL, ""); OrderAccess::release_store(&_f1, f1); } // Sets flags, but only if the value was previously zero. ! bool ConstantPoolCacheEntry::init_flags_atomic(intptr_t flags) { ! intptr_t result = Atomic::cmpxchg(flags, &_flags, (intptr_t)0); return (result == 0); } // Note that concurrent update of both bytecodes can leave one of them // reset to zero. This is harmless; the interpreter will simply re-resolve --- 109,120 ---- assert(f1 != NULL, ""); OrderAccess::release_store(&_f1, f1); } // Sets flags, but only if the value was previously zero. ! bool ConstantPoolCacheEntry::init_flags_atomic(intx flags) { ! intptr_t result = Atomic::cmpxchg(flags, &_flags, (intx)0); return (result == 0); } // Note that concurrent update of both bytecodes can leave one of them // reset to zero. This is harmless; the interpreter will simply re-resolve
< prev index next >