145 _verify_pass = 0,
146 _verify_fail_continue = 1,
147 _verify_fail_done = 2
148 };
149
150 static VerifyRetTypes compare_entries(int bkt1, int e_cnt1,
151 HashtableEntry<oop, mtSymbol>* e_ptr1,
152 int bkt2, int e_cnt2,
153 HashtableEntry<oop, mtSymbol>* e_ptr2);
154 static VerifyRetTypes verify_entry(int bkt, int e_cnt,
155 HashtableEntry<oop, mtSymbol>* e_ptr,
156 VerifyMesgModes mesg_mode);
157 static int verify_and_compare_entries();
158
159 // Sharing
160 static void ignore_shared_strings(bool v) { _ignore_shared_strings = v; }
161 static bool shared_string_ignored() { return _ignore_shared_strings; }
162 static void shared_oops_do(OopClosure* f);
163 static bool copy_shared_string(GrowableArray<MemRegion> *string_space,
164 CompactStringTableWriter* ch_table);
165 static void write_to_archive(GrowableArray<MemRegion> *string_space,
166 size_t* space_size);
167 static void serialize(SerializeClosure* soc);
168
169 // Rehash the symbol table if it gets out of balance
170 static void rehash_table();
171 static bool needs_rehashing() { return _needs_rehashing; }
172
173 // Parallel chunked scanning
174 static void clear_parallel_claimed_index() { _parallel_claimed_idx = 0; }
175 static int parallel_claimed_index() { return _parallel_claimed_idx; }
176 };
177 #endif // SHARE_VM_CLASSFILE_STRINGTABLE_HPP
|
145 _verify_pass = 0,
146 _verify_fail_continue = 1,
147 _verify_fail_done = 2
148 };
149
150 static VerifyRetTypes compare_entries(int bkt1, int e_cnt1,
151 HashtableEntry<oop, mtSymbol>* e_ptr1,
152 int bkt2, int e_cnt2,
153 HashtableEntry<oop, mtSymbol>* e_ptr2);
154 static VerifyRetTypes verify_entry(int bkt, int e_cnt,
155 HashtableEntry<oop, mtSymbol>* e_ptr,
156 VerifyMesgModes mesg_mode);
157 static int verify_and_compare_entries();
158
159 // Sharing
160 static void ignore_shared_strings(bool v) { _ignore_shared_strings = v; }
161 static bool shared_string_ignored() { return _ignore_shared_strings; }
162 static void shared_oops_do(OopClosure* f);
163 static bool copy_shared_string(GrowableArray<MemRegion> *string_space,
164 CompactStringTableWriter* ch_table);
165 static void write_to_archive(GrowableArray<MemRegion> *string_space);
166 static void serialize(SerializeClosure* soc);
167
168 // Rehash the symbol table if it gets out of balance
169 static void rehash_table();
170 static bool needs_rehashing() { return _needs_rehashing; }
171
172 // Parallel chunked scanning
173 static void clear_parallel_claimed_index() { _parallel_claimed_idx = 0; }
174 static int parallel_claimed_index() { return _parallel_claimed_idx; }
175 };
176 #endif // SHARE_VM_CLASSFILE_STRINGTABLE_HPP
|