SoftReferenceSymbolTable: rehash() and removeEntry() incorrectly handles 
SREntries
----------------------------------------------------------------------------------

                 Key: XERCESJ-1520
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1520
             Project: Xerces2-J
          Issue Type: Bug
          Components: Other
    Affects Versions: 2.11.0
            Reporter: Michael Glavassevich


While debugging I noticed that fCount can become negative if rehash() 
encounters cleared SREntries. This occurs because we process the SREntries 
again in removeEntry() without recognizing that they've already been removed 
from the table. We also weren't correctly / consistently updating the 'next', 
'prev' and 'bucket' fields in rehash() which can lead to the wrong entries 
being removed from the table when we clean-up the reference queue.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-dev-h...@xerces.apache.org

Reply via email to