src/hotspot/share/runtime/handles.hpp
changeset 49393 93fe2fc5c093
parent 49392 2956d0ece7a9
child 49449 ef5d5d343e2a
--- a/src/hotspot/share/runtime/handles.hpp	Wed Mar 14 07:27:19 2018 -0400
+++ b/src/hotspot/share/runtime/handles.hpp	Wed Mar 14 12:12:00 2018 +0100
@@ -72,7 +72,7 @@
  public:
   // Constructors
   Handle()                                       { _handle = NULL; }
-  Handle(Thread* thread, oop obj);
+  inline Handle(Thread* thread, oop obj);
 
   // General access
   oop     operator () () const                   { return obj(); }
@@ -108,9 +108,7 @@
    public:                                       \
     /* Constructors */                           \
     type##Handle ()                              : Handle()                 {} \
-    type##Handle (Thread* thread, type##Oop obj) : Handle(thread, (oop)obj) { \
-      assert(is_null() || ((oop)obj)->is_a(), "illegal type");                \
-    }                                                                         \
+    inline type##Handle (Thread* thread, type##Oop obj); \
     \
     /* Operators for ease of use */              \
     type##Oop    operator () () const            { return obj(); } \