src/hotspot/share/classfile/stringTable.cpp
changeset 54379 40a7e2fc9beb
parent 54347 235883996bc7
child 54486 7fd299216e97
equal deleted inserted replaced
54378:7c576e4d0afa 54379:40a7e2fc9beb
   759     oop s = val->peek();
   759     oop s = val->peek();
   760     if (s == NULL) {
   760     if (s == NULL) {
   761       return true;
   761       return true;
   762     }
   762     }
   763     unsigned int hash = java_lang_String::hash_code(s);
   763     unsigned int hash = java_lang_String::hash_code(s);
   764     if (hash == 0) {
       
   765       // We do not archive Strings with a 0 hashcode because ......
       
   766       return true;
       
   767     }
       
   768 
   764 
   769     java_lang_String::set_hash(s, hash);
   765     java_lang_String::set_hash(s, hash);
   770     oop new_s = StringTable::create_archived_string(s, Thread::current());
   766     oop new_s = StringTable::create_archived_string(s, Thread::current());
   771     if (new_s == NULL) {
   767     if (new_s == NULL) {
   772       return true;
   768       return true;