8224010: Incorrect string interning
authorcoleenp
Wed, 15 May 2019 20:33:17 -0400
changeset 54892 eedc3db527ac
parent 54891 2b5b666f26a6
child 54893 3e1ecfd3ea18
8224010: Incorrect string interning Summary: Revert jvmci change Reviewed-by: dholmes, jiangli
src/hotspot/share/jvmci/compilerRuntime.cpp
--- 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
     }