src/hotspot/share/runtime/handles.inline.hpp
changeset 59056 15936b142f86
parent 53682 e30211561a17
--- a/src/hotspot/share/runtime/handles.inline.hpp	Wed Nov 13 11:27:50 2019 +0000
+++ b/src/hotspot/share/runtime/handles.inline.hpp	Wed Nov 13 08:23:23 2019 -0500
@@ -55,14 +55,6 @@
 
 // Constructor for metadata handles
 #define DEF_METADATA_HANDLE_FN(name, type) \
-inline name##Handle::name##Handle(type* obj) : _value(obj), _thread(NULL) {       \
-  if (obj != NULL) {                                                   \
-    assert(((Metadata*)obj)->is_valid(), "obj is valid");              \
-    _thread = Thread::current();                                       \
-    assert (_thread->is_in_stack((address)this), "not on stack?");     \
-    _thread->metadata_handles()->push((Metadata*)obj);                 \
-  }                                                                    \
-}                                                                      \
 inline name##Handle::name##Handle(Thread* thread, type* obj) : _value(obj), _thread(thread) { \
   if (obj != NULL) {                                                   \
     assert(((Metadata*)obj)->is_valid(), "obj is valid");              \