You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "David Costanzo (JIRA)" <xe...@xml.apache.org> on 2016/06/22 14:02:58 UTC

[jira] [Updated] (XERCESJ-1520) SoftReferenceSymbolTable: rehash() and removeEntry() incorrectly handles SREntries

     [ https://issues.apache.org/jira/browse/XERCESJ-1520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Costanzo updated XERCESJ-1520:
------------------------------------
    Fix Version/s: 2.12.0

> 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
>            Assignee: Michael Glavassevich
>             Fix For: 2.12.0
>
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

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