ASM-generated class names get interned for better memory allocation

Issue: SPR-14886
This commit is contained in:
Juergen Hoeller 2016-11-08 17:38:57 +01:00
parent dc8cd4e4c0
commit 3a29daac45
1 changed files with 2 additions and 1 deletions

View File

@ -2464,7 +2464,8 @@ public class ClassReader {
// computes the start index of the CONSTANT_Class item in b
// and reads the CONSTANT_Utf8 item designated by
// the first two bytes of this CONSTANT_Class item
return readUTF8(items[readUnsignedShort(index)], buf);
String name = readUTF8(items[readUnsignedShort(index)], buf);
return (name != null ? name.intern() : null);
}
/**