mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
Merge
This commit is contained in:
commit
c3a0e80e0b
345 changed files with 58071 additions and 1206 deletions
|
@ -1203,7 +1203,11 @@ void InstanceKlass::mask_for(methodHandle method, int bci,
|
|||
MutexLocker x(OopMapCacheAlloc_lock);
|
||||
// First time use. Allocate a cache in C heap
|
||||
if (_oop_map_cache == NULL) {
|
||||
_oop_map_cache = new OopMapCache();
|
||||
// Release stores from OopMapCache constructor before assignment
|
||||
// to _oop_map_cache. C++ compilers on ppc do not emit the
|
||||
// required memory barrier only because of the volatile
|
||||
// qualifier of _oop_map_cache.
|
||||
OrderAccess::release_store_ptr(&_oop_map_cache, new OopMapCache());
|
||||
}
|
||||
}
|
||||
// _oop_map_cache is constant after init; lookup below does is own locking.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue