mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8214782: Add missing access barriers on CLD handle area
Reviewed-by: coleenp, eosterlund
This commit is contained in:
parent
bfbeb1fe9e
commit
602d095268
1 changed files with 2 additions and 2 deletions
|
@ -192,7 +192,7 @@ oop* ClassLoaderData::ChunkedHandleList::add(oop o) {
|
|||
OrderAccess::release_store(&_head, next);
|
||||
}
|
||||
oop* handle = &_head->_data[_head->_size];
|
||||
*handle = o;
|
||||
NativeAccess<IS_DEST_UNINITIALIZED>::oop_store(handle, o);
|
||||
OrderAccess::release_store(&_head->_size, _head->_size + 1);
|
||||
return handle;
|
||||
}
|
||||
|
@ -234,7 +234,7 @@ class VerifyContainsOopClosure : public OopClosure {
|
|||
VerifyContainsOopClosure(oop target) : _target(target), _found(false) {}
|
||||
|
||||
void do_oop(oop* p) {
|
||||
if (p != NULL && oopDesc::equals(RawAccess<>::oop_load(p), _target)) {
|
||||
if (p != NULL && oopDesc::equals(NativeAccess<AS_NO_KEEPALIVE>::oop_load(p), _target)) {
|
||||
_found = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue