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

Make SymbolTable increment_refcount disallow zero

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 12
    • 12
    • hotspot
    • None
    • b04


      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.

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

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

              Created:
              Updated:
              Resolved: