Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6659044

RFE: Common up String values

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 7-pool
    • hotspot
    • None
    • gc
    • generic
    • generic

      In a typical JVM, there are many String objects. And among those String objects there are likely to be some with the same contents. That is, with char[] values that hold the same characters. If we could have equivalent char[] values point to just one instance of the char[], we could save the space occupied by the other copies. This RFE covers an investigation of how much space could be saved, what benefit that would be, and possible alternatives for canonicalizing such char[]'s.

            pliden Per Liden (Inactive)
            pbk Peter Kessler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: