< prev index next >

src/hotspot/share/oops/weakHandle.cpp

Print this page
*** 54,10 ***
--- 54,15 ---
      NativeAccess<ON_PHANTOM_OOP_REF>::oop_store(_obj, (oop)NULL);
      storage->release(_obj);
    }
  }
  
+ WeakHandle WeakHandle::from_raw(oop* raw) {
+   assert(raw != NULL, "can't create from raw with NULL value");
+   return WeakHandle(raw);
+ }
+ 
  void WeakHandle::print() const { print_on(tty); }
  
  void WeakHandle::print_on(outputStream* st) const {
    st->print("WeakHandle: " PTR_FORMAT, p2i(peek()));
  }
< prev index next >