< prev index next >

src/hotspot/share/runtime/handles.cpp

Print this page




 197 
 198 NoHandleMark::~NoHandleMark() {
 199   HandleArea* area = Thread::current()->handle_area();
 200   assert(area->_no_handle_mark_nesting > 0, "must stack allocate NoHandleMark" );
 201   area->_no_handle_mark_nesting--;
 202 }
 203 
 204 
 205 ResetNoHandleMark::ResetNoHandleMark() {
 206   HandleArea* area = Thread::current()->handle_area();
 207   _no_handle_mark_nesting = area->_no_handle_mark_nesting;
 208   area->_no_handle_mark_nesting = 0;
 209 }
 210 
 211 
 212 ResetNoHandleMark::~ResetNoHandleMark() {
 213   HandleArea* area = Thread::current()->handle_area();
 214   area->_no_handle_mark_nesting = _no_handle_mark_nesting;
 215 }
 216 
 217 #endif


 197 
 198 NoHandleMark::~NoHandleMark() {
 199   HandleArea* area = Thread::current()->handle_area();
 200   assert(area->_no_handle_mark_nesting > 0, "must stack allocate NoHandleMark" );
 201   area->_no_handle_mark_nesting--;
 202 }
 203 
 204 
 205 ResetNoHandleMark::ResetNoHandleMark() {
 206   HandleArea* area = Thread::current()->handle_area();
 207   _no_handle_mark_nesting = area->_no_handle_mark_nesting;
 208   area->_no_handle_mark_nesting = 0;
 209 }
 210 
 211 
 212 ResetNoHandleMark::~ResetNoHandleMark() {
 213   HandleArea* area = Thread::current()->handle_area();
 214   area->_no_handle_mark_nesting = _no_handle_mark_nesting;
 215 }
 216 
 217 #endif // ASSERT
< prev index next >