--- old/hotspot/src/share/vm/runtime/jniHandles.hpp 2009-10-08 17:31:02.000000000 +0100 +++ new/hotspot/src/share/vm/runtime/jniHandles.hpp 2009-10-08 17:31:01.000000000 +0100 @@ -99,6 +99,8 @@ class JNIHandleBlock : public CHeapObj { friend class VMStructs; + friend class CppInterpreter; + private: enum SomeConstants { block_size_in_oops = 32 // Number of handles per handle block @@ -126,9 +128,11 @@ // Fill block with bad_handle values void zap(); + protected: // No more handles in the both the current and following blocks void clear() { _top = 0; } + private: // Free list computation void rebuild_free_list();