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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to