You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "David Bertoni (JIRA)" <xe...@xml.apache.org> on 2005/03/30 02:28:35 UTC

[jira] Created: (XERCESC-1391) Class RangeToken is not thread-safe

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


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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


[jira] Updated: (XERCESC-1391) Class RangeToken is not thread-safe

Posted by "David Bertoni (JIRA)" <xe...@xml.apache.org>.
     [ 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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


[jira] Assigned: (XERCESC-1391) Class RangeToken is not thread-safe

Posted by "David Bertoni (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESC-1391?page=history ]

David Bertoni reassigned XERCESC-1391:
--------------------------------------

    Assign To: David Bertoni

> 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
>     Assignee: 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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org