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

Add deduplicate_string function to CollectedHeap

XMLWordPrintable

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

      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());

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

              Created:
              Updated:
              Resolved: