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 "Boris Kolpackov (JIRA)" <xe...@xml.apache.org> on 2009/11/03 09:28:00 UTC

[jira] Closed: (XERCESC-1761) RecursiveMutex implementation for Tru64 has a bug

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

Boris Kolpackov closed XERCESC-1761.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0.0

This code is no longer in 3-series.

> RecursiveMutex implementation for Tru64 has a bug
> -------------------------------------------------
>
>                 Key: XERCESC-1761
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1761
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Miscellaneous
>    Affects Versions: 2.7.0, 2.8.0
>         Environment: Tru64 5.1, gcc 3.4.4
>            Reporter: Vladimir Lazarenko
>            Priority: Blocker
>             Fix For: 3.0.0
>
>
> in src/xercesc/util/Platforms/Tru64/Tru64PlatformUtils.cpp:
>  void* XMLPlatformUtils::makeMutex(MemoryManager* manager)
>  {
>   return new (manager) RecursiveMutex(manager);
>  }
> placement overload of new uses STL overload instead of the overload in XMemory, since RecursiveMutex doesn't inherit from XMemory, hence, each consequential instantiation of Mutex overwrites memory manager, causing xercesc to crash.
> A trivial fix for this would be:
> -class  RecursiveMutex
> +class  RecursiveMutex : public XMemory

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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