< prev index next >

src/hotspot/share/oops/weakHandle.inline.hpp

Print this page
rev 50285 : 8195097: Make it possible to process StringTable outside safepoint
Reviewed-by:

*** 38,43 **** --- 38,49 ---- 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 +
< prev index next >