< prev index next >

src/hotspot/share/oops/weakHandle.hpp

Print this page
*** 48,16 ***
--- 48,18 ---
   public:
    WeakHandle() : _obj(NULL) {} // needed for init
    WeakHandle(OopStorage* storage, Handle obj);
    WeakHandle(OopStorage* storage, oop obj);
  
+   static WeakHandle from_raw(oop* raw);
    inline oop resolve() const;
    inline oop peek() const;
    void release(OopStorage* storage) const;
    bool is_null() const { return _obj == NULL; }
  
    void replace(oop with_obj);
+   oop* raw() { return _obj; }
  
    void print() const;
    void print_on(outputStream* st) const;
  
    bool is_empty() const { return _obj == NULL; }
< prev index next >