ASM-generated class names get interned for better memory allocation
Issue: SPR-14886
This commit is contained in:
parent
dc8cd4e4c0
commit
3a29daac45
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue