Browse Source

ASM-generated class names get interned for better memory allocation

Issue: SPR-14886
pull/1235/head
Juergen Hoeller 9 years ago
parent
commit
3a29daac45
  1. 3
      spring-core/src/main/java/org/springframework/asm/ClassReader.java

3
spring-core/src/main/java/org/springframework/asm/ClassReader.java

@ -2464,7 +2464,8 @@ public class ClassReader { @@ -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…
Cancel
Save