equal
deleted
inserted
replaced
38 oop WeakHandle<T>::peek() const { |
38 oop WeakHandle<T>::peek() const { |
39 assert(!is_null(), "Must be created"); |
39 assert(!is_null(), "Must be created"); |
40 return RootAccess<ON_PHANTOM_OOP_REF | AS_NO_KEEPALIVE>::oop_load(_obj); |
40 return RootAccess<ON_PHANTOM_OOP_REF | AS_NO_KEEPALIVE>::oop_load(_obj); |
41 } |
41 } |
42 |
42 |
|
43 template <WeakHandleType T> |
|
44 void WeakHandle<T>::replace(oop with_obj) { |
|
45 RootAccess<ON_PHANTOM_OOP_REF>::oop_store(_obj, with_obj); |
|
46 } |
|
47 |
43 #endif // SHARE_VM_OOPS_WEAKHANDLE_INLINE_HPP |
48 #endif // SHARE_VM_OOPS_WEAKHANDLE_INLINE_HPP |
|
49 |