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

Make SymbolTable increment_refcount disallow zero

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b04

      Description


      SymbolTable::increment_refcount() should check for and disallow incrementing the refcount to observe a zero value.

      This can happen if another thread is decrementing the refcount while we are incrementing it. If the other thread decrements the refcount to zero, we cannot return this symbol. This is only possible during insertion into the concurrent hashtable.

        Attachments

        1. bad.svg
          517 kB
        2. good.svg
          1.73 MB

          Issue Links

            Activity

              People

              Assignee:
              coleenp Coleen Phillimore
              Reporter:
              coleenp Coleen Phillimore
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: