[ http://issues.apache.org/jira/browse/XERCESC-1391?page=history ]

David Bertoni updated XERCESC-1391:
-----------------------------------

    Attachment: patch.txt

> Class RangeToken is not thread-safe
> -----------------------------------
>
>          Key: XERCESC-1391
>          URL: http://issues.apache.org/jira/browse/XERCESC-1391
>      Project: Xerces-C++
>         Type: Bug
>   Components: Utilities
>     Versions: 2.6.0
>     Reporter: David Bertoni
>     Priority: Critical
>      Fix For: 2.6.0
>  Attachments: patch.txt
>
> The class RangeToken initializes its fMap data member the first time 
> on-demand, which makes it sensitive to race-conditions.  I am proposing a 
> patch to the class, with additional patches to the classes that perform 
> static initialization to ensure that when users request full static 
> initialization, the fMap data member of all static RangeToken instances is 
> initialized.
> Although this does not prevent threading problems in all cases, it will fix 
> the problem with all global statics.  I will attempt to propose another patch 
> that takes care of the problem with other uses of RangeToken.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to