You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pe...@apache.org on 2003/12/19 00:22:47 UTC
cvs commit: xml-xerces/c/src/xercesc/util XMemory.cpp
peiyongz 2003/12/18 15:22:47
Modified: c/src/xercesc/util XMemory.cpp
Log:
do not assert memorymanager in placement delete.
Revision Changes Path
1.9 +4 -2 xml-xerces/c/src/xercesc/util/XMemory.cpp
Index: XMemory.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/XMemory.cpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- XMemory.cpp 25 Aug 2003 16:12:55 -0000 1.8
+++ XMemory.cpp 18 Dec 2003 23:22:47 -0000 1.9
@@ -134,8 +134,10 @@
{
size_t headerSize = XMLPlatformUtils::alignPointerForNewBlockAllocation(sizeof(MemoryManager*));
void* const block = (char*)p - headerSize;
- assert(*(MemoryManager**)block == manager);
+
/***
+ * assert(*(MemoryManager**)block == manager);
+ *
* NOTE: for compiler which can't properly trace the memory manager used in the
* placement new, we use the memory manager embedded in the memory rather
* than the one passed in
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org