< prev index next >
src/hotspot/share/classfile/classLoader.inline.hpp
Print this page
*** 27,41 ****
#include "classfile/classLoader.hpp"
#include "runtime/orderAccess.hpp"
// Next entry in class path
! inline ClassPathEntry* ClassPathEntry::next() const { return OrderAccess::load_acquire(&_next); }
inline void ClassPathEntry::set_next(ClassPathEntry* next) {
// may have unlocked readers, so ensure visibility.
! OrderAccess::release_store(&_next, next);
}
inline ClassPathEntry* ClassLoader::classpath_entry(int n) {
assert(n >= 0, "sanity");
if (n == 0) {
--- 27,41 ----
#include "classfile/classLoader.hpp"
#include "runtime/orderAccess.hpp"
// Next entry in class path
! inline ClassPathEntry* ClassPathEntry::next() const { return Atomic::load_acquire(&_next); }
inline void ClassPathEntry::set_next(ClassPathEntry* next) {
// may have unlocked readers, so ensure visibility.
! Atomic::release_store(&_next, next);
}
inline ClassPathEntry* ClassLoader::classpath_entry(int n) {
assert(n >= 0, "sanity");
if (n == 0) {
< prev index next >