ASM-generated class names get interned for better memory allocation
Issue: SPR-14886
This commit is contained in:
@@ -2464,7 +2464,8 @@ public class ClassReader {
|
|||||||
// computes the start index of the CONSTANT_Class item in b
|
// computes the start index of the CONSTANT_Class item in b
|
||||||
// and reads the CONSTANT_Utf8 item designated by
|
// and reads the CONSTANT_Utf8 item designated by
|
||||||
// the first two bytes of this CONSTANT_Class item
|
// 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user