309 |
309 |
310 // Debugging |
310 // Debugging |
311 static void verify(); |
311 static void verify(); |
312 static void dump(outputStream* st); |
312 static void dump(outputStream* st); |
313 |
313 |
|
314 enum VerifyMesgModes { |
|
315 _verify_quietly = 0, |
|
316 _verify_with_mesgs = 1 |
|
317 }; |
|
318 |
|
319 enum VerifyRetTypes { |
|
320 _verify_pass = 0, |
|
321 _verify_fail_continue = 1, |
|
322 _verify_fail_done = 2 |
|
323 }; |
|
324 |
|
325 static VerifyRetTypes compare_entries(int bkt1, int e_cnt1, |
|
326 HashtableEntry<oop, mtSymbol>* e_ptr1, |
|
327 int bkt2, int e_cnt2, |
|
328 HashtableEntry<oop, mtSymbol>* e_ptr2); |
|
329 static VerifyRetTypes verify_entry(int bkt, int e_cnt, |
|
330 HashtableEntry<oop, mtSymbol>* e_ptr, |
|
331 VerifyMesgModes mesg_mode); |
|
332 static int verify_and_compare_entries(); |
|
333 |
314 // Sharing |
334 // Sharing |
315 static void copy_buckets(char** top, char*end) { |
335 static void copy_buckets(char** top, char*end) { |
316 the_table()->Hashtable<oop, mtSymbol>::copy_buckets(top, end); |
336 the_table()->Hashtable<oop, mtSymbol>::copy_buckets(top, end); |
317 } |
337 } |
318 static void copy_table(char** top, char*end) { |
338 static void copy_table(char** top, char*end) { |