8224010: Incorrect string interning
Summary: Revert jvmci change
Reviewed-by: dholmes, jiangli
--- a/src/hotspot/share/jvmci/compilerRuntime.cpp Thu May 16 02:34:53 2019 +0200
+++ b/src/hotspot/share/jvmci/compilerRuntime.cpp Wed May 15 20:33:17 2019 -0400
@@ -45,7 +45,8 @@
// First 2 bytes of name contains length (number of bytes).
int len = Bytes::get_Java_u2((address)name);
name += 2;
- str = StringTable::intern(name, CHECK);
+ TempNewSymbol sym = SymbolTable::new_symbol(name, len);
+ str = StringTable::intern(sym, CHECK);
assert(java_lang_String::is_instance(str), "must be string");
*(oop*)string_result = str; // Store result
}