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

String.intern creates more work than necessary for G1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • gc
    • b109

      G1 requires a SATB read barrier when reading from potentially weak tables such as the string interning table. Currently the code enqueues a reference on every String.intern operation, when it is really only needed when the intern operation finds a previously interned string. Adding a new string to the table should not require a SATB read barrier.
      This code may contribute to the test failure JDK-8134992 "vm/gc/compact/Compact_InternedStrings_Strings failed due to a malloc() failure"

            drwhite Derek White
            drwhite Derek White
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: