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 "James Berry (JIRA)" <xe...@xml.apache.org> on 2005/05/26 21:41:52 UTC

[jira] Commented: (XERCESC-1420) XMLPlatformUtils::makeMutex() creates mutex objects using the C++ runtime heap instead of using a MemoryManager instance

     [ http://issues.apache.org/jira/browse/XERCESC-1420?page=comments#action_66387 ]
     
James Berry commented on XERCESC-1420:
--------------------------------------

Hey Dave,

I fixed up something similar (I believe) in my work on Xerces 3.0 at

https://svn.apache.org/repos/asf/xerces/c/branches/jberry/3.0-unstable/src/xercesc/util/PlatformUtils.cpp
https://svn.apache.org/repos/asf/xerces/c/branches/jberry/3.0-unstable/src/xercesc/util/MutexManagers/

I'm not sure whether it's important that we match entirely, but for ease in porting to 3.0 it might be good if more or less we're inline. Plus I want to make sure I've fixed the problem you're seeing.

Do you mind taking a look?

James

> XMLPlatformUtils::makeMutex() creates mutex objects using the C++ runtime heap instead of using a MemoryManager instance
> ------------------------------------------------------------------------------------------------------------------------
>
>          Key: XERCESC-1420
>          URL: http://issues.apache.org/jira/browse/XERCESC-1420
>      Project: Xerces-C++
>         Type: Bug
>   Components: Utilities
>     Versions: 2.6.0
>     Reporter: David Bertoni
>     Assignee: David Bertoni
>     Priority: Blocker

>
> XMLPlatformUtils::makeMutex() needs to accept a MemoryManager instance as a parameter to use pluggable memory management.  As it stands now, mutex objects on the various platforms are created using the C++ run-time heap.  This is causing memory allocation issues and crashes in our application.
> I am preparing a patch, but it covers all platforms, so I won't be able to test every one of them.

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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