Larger initial size for ASM type descriptor StringBuilder
Closes gh-22565
This commit is contained in:
parent
57a67a3c06
commit
a7adafdb6a
|
|
@ -1426,7 +1426,7 @@ class Frame {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Case of an array type, we need to build its descriptor first.
|
// Case of an array type, we need to build its descriptor first.
|
||||||
StringBuilder typeDescriptor = new StringBuilder();
|
StringBuilder typeDescriptor = new StringBuilder(32); // SPRING PATCH: larger initial size
|
||||||
while (arrayDimensions-- > 0) {
|
while (arrayDimensions-- > 0) {
|
||||||
typeDescriptor.append('[');
|
typeDescriptor.append('[');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue