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

Make SymbolTable increment_refcount disallow zero

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P3
    • 12
    • 12
    • hotspot
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: