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 2004/07/21 16:54:39 UTC
cvs commit: xml-xerces/c/src/xercesc/internal XSerializeEngine.cpp
peiyongz 2004/07/21 07:54:39
Modified: c/src/xercesc/internal XSerializeEngine.cpp
Log:
using the supplied memory manager , patch from David Bertoni
Revision Changes Path
1.18 +9 -4 xml-xerces/c/src/xercesc/internal/XSerializeEngine.cpp
Index: XSerializeEngine.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/internal/XSerializeEngine.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- XSerializeEngine.cpp 5 Mar 2004 22:21:45 -0000 1.17
+++ XSerializeEngine.cpp 21 Jul 2004 14:54:39 -0000 1.18
@@ -57,6 +57,9 @@
/*
* $Id$
* $Log$
+ * Revision 1.18 2004/07/21 14:54:39 peiyongz
+ * using the supplied memory manager , patch from David Bertoni
+ *
* Revision 1.17 2004/03/05 22:21:45 peiyongz
* readBytes()/writeBytes between BinOutputStream/BinInputStream and
* XSerializeEngine will always be the full size of the buffer to maintain the exact
@@ -217,7 +220,7 @@
,fBufEnd(fBufStart+bufSize)
,fBufCur(fBufStart)
,fBufLoadMax(0)
-,fStorePool( new (gramPool->getMemoryManager()) RefHashTableOf<XSerializedObjectId>(29, true, new HashPtr(), gramPool->getMemoryManager()) )
+,fStorePool( new (gramPool->getMemoryManager()) RefHashTableOf<XSerializedObjectId>(29, true, new (gramPool->getMemoryManager()) HashPtr(), gramPool->getMemoryManager()) )
,fLoadPool(0)
,fObjectCount(0)
{
@@ -264,7 +267,7 @@
,fBufEnd(fBufStart+bufSize)
,fBufCur(fBufStart)
,fBufLoadMax(0)
-,fStorePool( new (manager) RefHashTableOf<XSerializedObjectId>(29, true, new HashPtr(), manager) )
+,fStorePool( new (manager) RefHashTableOf<XSerializedObjectId>(29, true, new (manager) HashPtr(), manager) )
,fLoadPool(0)
,fObjectCount(0)
{
@@ -902,7 +905,7 @@
void XSerializeEngine::addStorePool(void* const objToAdd)
{
pumpCount();
- fStorePool->put(objToAdd, new XSerializedObjectId(fObjectCount));
+ fStorePool->put(objToAdd, new (fGrammarPool->getMemoryManager()) XSerializedObjectId(fObjectCount));
}
XSerializable* XSerializeEngine::lookupLoadPool(XSerializedObjectId_t objectTag) const
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org