hotspot/src/share/vm/runtime/handles.inline.hpp
changeset 20059 c26474fd5ac0
parent 15099 b31d40895bbb
child 22234 da823d78ad65
equal deleted inserted replaced
20057:7131f20389fb 20059:c26474fd5ac0
    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;                                                        \