comparison src/share/vm/runtime/jniHandles.hpp @ 1010:354d3184f6b2

6890308: integrate zero assembler hotspot changes Reviewed-by: never Contributed-by: gbenson@redhat.com
author never
date Tue, 13 Oct 2009 12:04:21 -0700
parents 1760a1cbed36
children 892898e961c5
comparison
equal deleted inserted replaced
1009:03b336640699 1010:354d3184f6b2
97 97
98 // JNI handle blocks holding local/global JNI handles 98 // JNI handle blocks holding local/global JNI handles
99 99
100 class JNIHandleBlock : public CHeapObj { 100 class JNIHandleBlock : public CHeapObj {
101 friend class VMStructs; 101 friend class VMStructs;
102 friend class CppInterpreter;
103
102 private: 104 private:
103 enum SomeConstants { 105 enum SomeConstants {
104 block_size_in_oops = 32 // Number of handles per handle block 106 block_size_in_oops = 32 // Number of handles per handle block
105 }; 107 };
106 108
124 static int _blocks_allocated; // For debugging/printing 126 static int _blocks_allocated; // For debugging/printing
125 127
126 // Fill block with bad_handle values 128 // Fill block with bad_handle values
127 void zap(); 129 void zap();
128 130
131 protected:
129 // No more handles in the both the current and following blocks 132 // No more handles in the both the current and following blocks
130 void clear() { _top = 0; } 133 void clear() { _top = 0; }
131 134
135 private:
132 // Free list computation 136 // Free list computation
133 void rebuild_free_list(); 137 void rebuild_free_list();
134 138
135 public: 139 public:
136 // Handle allocation 140 // Handle allocation