src/hotspot/share/classfile/classFileParser.cpp
changeset 54335 d9f6d16299b1
parent 54257 21702e87efdf
child 54347 235883996bc7
equal deleted inserted replaced
54334:f1548abd4ae0 54335:d9f6d16299b1
   310                              index,
   310                              index,
   311                              CHECK);
   311                              CHECK);
   312           const char* const str = java_lang_String::as_utf8_string(patch());
   312           const char* const str = java_lang_String::as_utf8_string(patch());
   313           // (could use java_lang_String::as_symbol instead, but might as well batch them)
   313           // (could use java_lang_String::as_symbol instead, but might as well batch them)
   314           utf8_buffer = (const u1*) str;
   314           utf8_buffer = (const u1*) str;
   315           utf8_length = (int) strlen(str);
   315           utf8_length = (u2) strlen(str);
   316         }
   316         }
   317 
   317 
   318         unsigned int hash;
   318         unsigned int hash;
   319         Symbol* const result = SymbolTable::lookup_only((const char*)utf8_buffer,
   319         Symbol* const result = SymbolTable::lookup_only((const char*)utf8_buffer,
   320                                                         utf8_length,
   320                                                         utf8_length,