--- 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(); } \