--- old/src/hotspot/share/runtime/handles.hpp 2018-03-12 22:05:26.431091854 -0400 +++ new/src/hotspot/share/runtime/handles.hpp 2018-03-12 22:05:25.835036907 -0400 @@ -298,4 +298,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