< prev index next >
src/hotspot/share/oops/weakHandle.inline.hpp
Print this page
rev 50534 : [mq]: rename_RootAccess
*** 29,49 ****
#include "oops/access.inline.hpp"
template <WeakHandleType T>
oop WeakHandle<T>::resolve() const {
assert(!is_null(), "Must be created");
! return RootAccess<ON_PHANTOM_OOP_REF>::oop_load(_obj);
}
template <WeakHandleType T>
oop WeakHandle<T>::peek() const {
assert(!is_null(), "Must be created");
! return RootAccess<ON_PHANTOM_OOP_REF | AS_NO_KEEPALIVE>::oop_load(_obj);
}
template <WeakHandleType T>
void WeakHandle<T>::replace(oop with_obj) {
! RootAccess<ON_PHANTOM_OOP_REF>::oop_store(_obj, with_obj);
}
#endif // SHARE_VM_OOPS_WEAKHANDLE_INLINE_HPP
--- 29,49 ----
#include "oops/access.inline.hpp"
template <WeakHandleType T>
oop WeakHandle<T>::resolve() const {
assert(!is_null(), "Must be created");
! return NativeAccess<ON_PHANTOM_OOP_REF>::oop_load(_obj);
}
template <WeakHandleType T>
oop WeakHandle<T>::peek() const {
assert(!is_null(), "Must be created");
! return NativeAccess<ON_PHANTOM_OOP_REF | AS_NO_KEEPALIVE>::oop_load(_obj);
}
template <WeakHandleType T>
void WeakHandle<T>::replace(oop with_obj) {
! NativeAccess<ON_PHANTOM_OOP_REF>::oop_store(_obj, with_obj);
}
#endif // SHARE_VM_OOPS_WEAKHANDLE_INLINE_HPP
< prev index next >