# HG changeset patch # User pliden # Date 1544026280 -3600 # Node ID eb95a38b2964a74ab7b92cf87264aeefb460f4a9 # Parent f0c62b8f73c0923faa3a6b6d851ee76757cba956 8214782: Add missing access barriers on CLD handle area Reviewed-by: coleenp, eosterlund diff -r f0c62b8f73c0 -r eb95a38b2964 src/hotspot/share/classfile/classLoaderData.cpp --- a/src/hotspot/share/classfile/classLoaderData.cpp Wed Dec 05 17:11:19 2018 +0100 +++ b/src/hotspot/share/classfile/classLoaderData.cpp Wed Dec 05 17:11:20 2018 +0100 @@ -192,7 +192,7 @@ OrderAccess::release_store(&_head, next); } oop* handle = &_head->_data[_head->_size]; - *handle = o; + NativeAccess::oop_store(handle, o); OrderAccess::release_store(&_head->_size, _head->_size + 1); return handle; } @@ -234,7 +234,7 @@ 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::oop_load(p), _target)) { _found = true; } }