src/share/vm/runtime/handles.inline.hpp

changeset 5749
4f9a42c33738
parent 4395
cc6a617fffd2
child 6198
55fb97c4c58d
equal deleted inserted replaced
5747:6eb908998b32 5749:4f9a42c33738
77 assert(h._thread == Thread::current(), "thread must be current");\ 77 assert(h._thread == Thread::current(), "thread must be current");\
78 _thread = h._thread; \ 78 _thread = h._thread; \
79 } else { \ 79 } else { \
80 _thread = Thread::current(); \ 80 _thread = Thread::current(); \
81 } \ 81 } \
82 assert (_thread->is_in_stack((address)this), "not on stack?"); \
82 _thread->metadata_handles()->push((Metadata*)_value); \ 83 _thread->metadata_handles()->push((Metadata*)_value); \
83 } else { \ 84 } else { \
84 _thread = NULL; \ 85 _thread = NULL; \
85 } \ 86 } \
86 } \ 87 } \
93 assert(s._thread == Thread::current(), "thread must be current");\ 94 assert(s._thread == Thread::current(), "thread must be current");\
94 _thread = s._thread; \ 95 _thread = s._thread; \
95 } else { \ 96 } else { \
96 _thread = Thread::current(); \ 97 _thread = Thread::current(); \
97 } \ 98 } \
99 assert (_thread->is_in_stack((address)this), "not on stack?"); \
98 _thread->metadata_handles()->push((Metadata*)_value); \ 100 _thread->metadata_handles()->push((Metadata*)_value); \
99 } else { \ 101 } else { \
100 _thread = NULL; \ 102 _thread = NULL; \
101 } \ 103 } \
102 return *this; \ 104 return *this; \

mercurial