hotspot/src/share/vm/runtime/jniHandles.hpp
Print this page
@@ -97,10 +97,12 @@
// JNI handle blocks holding local/global JNI handles
class JNIHandleBlock : public CHeapObj {
friend class VMStructs;
+ friend class CppInterpreter;
+
private:
enum SomeConstants {
block_size_in_oops = 32 // Number of handles per handle block
};
@@ -124,13 +126,15 @@
static int _blocks_allocated; // For debugging/printing
// 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();
public:
// Handle allocation