< prev index next >

src/hotspot/share/interpreter/oopMapCache.cpp

Print this page

        

*** 446,456 **** // Deallocate array FREE_C_HEAP_ARRAY(OopMapCacheEntry*, _array); } OopMapCacheEntry* OopMapCache::entry_at(int i) const { ! return OrderAccess::load_acquire(&(_array[i % _size])); } bool OopMapCache::put_at(int i, OopMapCacheEntry* entry, OopMapCacheEntry* old) { return Atomic::cmpxchg(entry, &_array[i % _size], old) == old; } --- 446,456 ---- // Deallocate array FREE_C_HEAP_ARRAY(OopMapCacheEntry*, _array); } OopMapCacheEntry* OopMapCache::entry_at(int i) const { ! return Atomic::load_acquire(&(_array[i % _size])); } bool OopMapCache::put_at(int i, OopMapCacheEntry* entry, OopMapCacheEntry* old) { return Atomic::cmpxchg(entry, &_array[i % _size], old) == old; }
< prev index next >