src/hotspot/share/runtime/handles.hpp
changeset 49449 ef5d5d343e2a
parent 49393 93fe2fc5c093
child 49658 8237a91c1cca
--- a/src/hotspot/share/runtime/handles.hpp	Fri Mar 16 08:26:53 2018 -0400
+++ b/src/hotspot/share/runtime/handles.hpp	Fri Mar 16 09:12:13 2018 -0400
@@ -296,4 +296,17 @@
 #endif
 };
 
+// The HandleMarkCleaner is a faster version of HandleMark.
+// It relies on the fact that there is a HandleMark further
+// down the stack (in JavaCalls::call_helper), and just resets
+// to the saved values in that HandleMark.
+
+class HandleMarkCleaner: public StackObj {
+ private:
+  Thread* _thread;
+ public:
+  inline HandleMarkCleaner(Thread* thread);
+  inline ~HandleMarkCleaner();
+};
+
 #endif // SHARE_VM_RUNTIME_HANDLES_HPP