hotspot/src/share/vm/runtime/handles.inline.hpp
changeset 46329 53ccc37bda19
parent 46271 979ebd346ecf
equal deleted inserted replaced
46328:6061df52d610 46329:53ccc37bda19
    38   } else {
    38   } else {
    39     _handle = thread->handle_area()->allocate_handle(obj);
    39     _handle = thread->handle_area()->allocate_handle(obj);
    40   }
    40   }
    41 }
    41 }
    42 
    42 
    43 // Constructors for metadata handles
    43 // Constructor for metadata handles
    44 #define DEF_METADATA_HANDLE_FN(name, type) \
    44 #define DEF_METADATA_HANDLE_FN(name, type) \
    45 inline name##Handle::name##Handle(type* obj) : _value(obj), _thread(NULL) {       \
    45 inline name##Handle::name##Handle(type* obj) : _value(obj), _thread(NULL) {       \
    46   if (obj != NULL) {                                                   \
    46   if (obj != NULL) {                                                   \
    47     assert(((Metadata*)obj)->is_valid(), "obj is valid");              \
    47     assert(((Metadata*)obj)->is_valid(), "obj is valid");              \
    48     _thread = Thread::current();                                       \
    48     _thread = Thread::current();                                       \