-
Enhancement
-
Resolution: Fixed
-
P5
-
None
-
b47
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084135 | emb-9 | Unassigned | P5 | Resolved | Fixed | team |
JDK-8086779 | 8u65 | Unassigned | P5 | Resolved | Fixed | b01 |
JDK-8071586 | 8u60 | Lev Priima | P5 | Resolved | Fixed | b03 |
JDK-8138142 | emb-8u65 | Unassigned | P5 | Resolved | Fixed | b01 |
JDK-8076731 | emb-8u60 | Lev Priima | P5 | Resolved | Fixed | team |
In an average heap dump, 292 kB is wasted from empty Strings having their own char[] of length 0. Instead, the String class should declare a zero-length char[] and use that for empty Strings. The constructor should detect that an empty String is being created and use the common char[].
- backported by
-
JDK-8071586 Use private static final char[0] for empty Strings
-
- Resolved
-
-
JDK-8076731 Use private static final char[0] for empty Strings
-
- Resolved
-
-
JDK-8084135 Use private static final char[0] for empty Strings
-
- Resolved
-
-
JDK-8086779 Use private static final char[0] for empty Strings
-
- Resolved
-
-
JDK-8138142 Use private static final char[0] for empty Strings
-
- Resolved
-
- relates to
-
JDK-8071571 Move substring of same string to slow path
-
- Resolved
-
(1 relates to)