hotspot/src/share/vm/classfile/classFileParser.cpp
changeset 13201 69f157caabcc
parent 13195 be27e1b6a4b9
child 13286 b8b0898d5f3a
child 13295 34d3b7128667
--- a/hotspot/src/share/vm/classfile/classFileParser.cpp	Thu Jun 28 11:37:28 2012 +0200
+++ b/hotspot/src/share/vm/classfile/classFileParser.cpp	Mon Jul 09 01:28:37 2012 -0700
@@ -2337,12 +2337,7 @@
 
   // Don't bother storing it if there is no way to retrieve it
   if (JvmtiExport::can_get_source_debug_extension()) {
-    // Optimistically assume that only 1 byte UTF format is used
-    // (common case)
-    TempNewSymbol sde_symbol = SymbolTable::new_symbol((const char*)sde_buffer, length, CHECK);
-    k->set_source_debug_extension(sde_symbol);
-    // Note that set_source_debug_extension() increments the reference count
-    // for its copy of the Symbol*, so use a TempNewSymbol here.
+    k->set_source_debug_extension((char*)sde_buffer, length);
   }
   // Got utf8 string, set stream position forward
   cfs->skip_u1(length, CHECK);