< prev index next >

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

Print this page

        

@@ -102,6 +102,15 @@
   area->_hwm = _hwm;
   area->_max = _max;
   debug_only(area->_handle_mark_nesting--);
 }
 
+inline HandleMarkCleaner::HandleMarkCleaner(Thread* thread) {
+  _thread = thread;
+  _thread->last_handle_mark()->push();
+}
+
+inline HandleMarkCleaner::~HandleMarkCleaner() {
+  _thread->last_handle_mark()->pop_and_restore();
+}
+
 #endif // SHARE_VM_RUNTIME_HANDLES_INLINE_HPP
< prev index next >