ASM-generated class names get interned for better memory allocation
Issue: SPR-14862
This commit is contained in:
parent
d759c96a98
commit
d859826be6
|
@ -562,7 +562,7 @@ public class Type {
|
||||||
}
|
}
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
case OBJECT:
|
case OBJECT:
|
||||||
return new String(buf, off, len).replace('/', '.');
|
return new String(buf, off, len).replace('/', '.').intern();
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -577,7 +577,7 @@ public class Type {
|
||||||
* @return the internal name of the class corresponding to this object type.
|
* @return the internal name of the class corresponding to this object type.
|
||||||
*/
|
*/
|
||||||
public String getInternalName() {
|
public String getInternalName() {
|
||||||
return new String(buf, off, len);
|
return new String(buf, off, len).intern();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue