< prev index next >

src/hotspot/share/runtime/handles.hpp

Print this page
@@ -71,11 +71,11 @@
    oop     non_null_obj() const                   { assert(_handle != NULL, "resolving NULL handle"); return *_handle; }
  
   public:
    // Constructors
    Handle()                                       { _handle = NULL; }
-   inline Handle(Thread* thread, oop obj);
+   inline Handle(Thread* thread, oop obj, bool allocNull = false);
  
    // General access
    oop     operator () () const                   { return obj(); }
    oop     operator -> () const                   { return non_null_obj(); }
  

@@ -110,11 +110,11 @@
      type##Oop    non_null_obj() const            { return (type##Oop)Handle::non_null_obj(); } \
                                                   \
     public:                                       \
      /* Constructors */                           \
      type##Handle ()                              : Handle()                 {} \
-     inline type##Handle (Thread* thread, type##Oop obj); \
+     inline type##Handle (Thread* thread, type##Oop obj, bool allocNull = false); \
      \
      /* Operators for ease of use */              \
      type##Oop    operator () () const            { return obj(); } \
      type##Oop    operator -> () const            { return non_null_obj(); } \
    };
< prev index next >