JDK-7133389 : De-duplication of Fields of Immutable Objects (Strings)
  • Type: Enhancement
  • Component: performance
  • Sub-Component: hotspot
  • Affected Version: 7u2
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2012-01-25
  • Updated: 2012-01-25
  • Resolved: 2012-01-25
Related Reports
Duplicate :  
Description
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.