See attachments for a detailed description.
The basic idea is to scan the heap's old collection for immutable objects (e.g. Strings). When duplicate Strings are identified, force them to share the char[]. This idea doesn't apply strictly to Strings.
The basic idea is to scan the heap's old collection for immutable objects (e.g. Strings). When duplicate Strings are identified, force them to share the char[]. This idea doesn't apply strictly to Strings.
- duplicates
-
JDK-7133389 De-duplication of Fields of Immutable Objects (Strings)
- Closed
- relates to
-
JDK-8029075 String deduplication in G1
- Resolved
-
JDK-6924259 Remove String.count/String.offset/String.hashcode
- Closed