hotspot/src/share/vm/classfile/stringTable.cpp
changeset 33148 68fa8b6c4340
parent 33105 294e48b4f704
child 33628 09241459a8b8
equal deleted inserted replaced
33146:77349b58b4c0 33148:68fa8b6c4340
    41 #include "gc/g1/g1CollectedHeap.hpp"
    41 #include "gc/g1/g1CollectedHeap.hpp"
    42 #include "gc/g1/g1SATBCardTableModRefBS.hpp"
    42 #include "gc/g1/g1SATBCardTableModRefBS.hpp"
    43 #include "gc/g1/g1StringDedup.hpp"
    43 #include "gc/g1/g1StringDedup.hpp"
    44 #endif
    44 #endif
    45 
    45 
    46 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
       
    47 
       
    48 // the number of buckets a thread claims
    46 // the number of buckets a thread claims
    49 const int ClaimChunkSize = 32;
    47 const int ClaimChunkSize = 32;
    50 
    48 
    51 #ifdef ASSERT
    49 #ifdef ASSERT
    52 class StableMemoryChecker : public StackObj {
    50 class StableMemoryChecker : public StackObj {
   443   oop str2 = e_ptr2->literal();
   441   oop str2 = e_ptr2->literal();
   444 
   442 
   445   if (str1 == str2) {
   443   if (str1 == str2) {
   446     tty->print_cr("ERROR: identical oop values (0x" PTR_FORMAT ") "
   444     tty->print_cr("ERROR: identical oop values (0x" PTR_FORMAT ") "
   447                   "in entry @ bucket[%d][%d] and entry @ bucket[%d][%d]",
   445                   "in entry @ bucket[%d][%d] and entry @ bucket[%d][%d]",
   448                   (void *)str1, bkt1, e_cnt1, bkt2, e_cnt2);
   446                   p2i(str1), bkt1, e_cnt1, bkt2, e_cnt2);
   449     return _verify_fail_continue;
   447     return _verify_fail_continue;
   450   }
   448   }
   451 
   449 
   452   if (java_lang_String::equals(str1, str2)) {
   450   if (java_lang_String::equals(str1, str2)) {
   453     tty->print_cr("ERROR: identical String values in entry @ "
   451     tty->print_cr("ERROR: identical String values in entry @ "