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

Add deduplicate_string function to CollectedHeap

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 11
    • None
    • hotspot
    • None
    • gc
    • b13

    Description

      The proposal is to change the following in the StringTable:
      -#if INCLUDE_G1GC
      - if (G1StringDedup::is_enabled()) {
      - // Deduplicate the string before it is interned. Note that we should never
      - // deduplicate a string after it has been interned. Doing so will counteract
      - // compiler optimizations done on e.g. interned string literals.
      - G1StringDedup::deduplicate(string());
      - }
      -#endif
      + Universe::heap()->deduplicate_string(string());

      Attachments

        Activity

          People

            stefank Stefan Karlsson
            stefank Stefan Karlsson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: