-
Bug
-
Resolution: Fixed
-
P3
-
9
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8239168 | openjdk8u252 | Chris Hegarty | P3 | Resolved | Fixed | b03 |
JDK-8235895 | openjdk8u242 | Chris Hegarty | P3 | Resolved | Fixed | b05 |
JDK-8234307 | 8u251 | Kiran Sidhartha Ravikumar | P3 | Resolved | Fixed | b01 |
JDK-8234846 | 8u241 | Sean Coffey | P3 | Resolved | Fixed | b05 |
JDK-8234817 | 8u231 | Sean Coffey | P3 | Closed | Fixed | b34 |
JDK-8239668 | emb-8u251 | Sean Coffey | P3 | Resolved | Fixed | team |
JDK-8237300 | emb-8u241 | Sean Coffey | P3 | Resolved | Fixed | team |
and can avoid expandCapacity() by constructing StringBuilder with the expected size.
private String readUTFBody(long utflen) throws IOException {
- StringBuilder sbuf = new StringBuilder();
---
+ StringBuilder sbuf = new StringBuilder((int)utflen);
Sample profile output:
Stack Trace Sample Count Percentage(%)
java.io.ObjectInputStream$BlockDataInputStream.readUTFSpan(StringBuilder, long) 640 22.253
java.util.Arrays.copyOf(char[], int) 146 5.076
java.lang.AbstractStringBuilder.expandCapacity(int) 146 5.076
- backported by
-
JDK-8234307 BlockDataInputStream.readUTFBody: size local StringBuffer with the given length
-
- Resolved
-
-
JDK-8234846 BlockDataInputStream.readUTFBody: size local StringBuffer with the given length
-
- Resolved
-
-
JDK-8235895 BlockDataInputStream.readUTFBody: size local StringBuffer with the given length
-
- Resolved
-
-
JDK-8237300 BlockDataInputStream.readUTFBody: size local StringBuffer with the given length
-
- Resolved
-
-
JDK-8239168 BlockDataInputStream.readUTFBody: size local StringBuffer with the given length
-
- Resolved
-
-
JDK-8239668 BlockDataInputStream.readUTFBody: size local StringBuffer with the given length
-
- Resolved
-
-
JDK-8234817 BlockDataInputStream.readUTFBody: size local StringBuffer with the given length
-
- Closed
-