< prev index next >
src/share/vm/runtime/handles.inline.hpp
Print this page
*** 38,48 ****
} else {
_handle = thread->handle_area()->allocate_handle(obj);
}
}
! // Constructors 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(); \
--- 38,48 ----
} else {
_handle = thread->handle_area()->allocate_handle(obj);
}
}
! // 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(); \
< prev index next >