Boost logo

Boost-Commit :

From: xushiweizh_at_[hidden]
Date: 2008-05-06 11:20:43


Author: xushiwei
Date: 2008-05-06 11:20:42 EDT (Tue, 06 May 2008)
New Revision: 45175
URL: http://svn.boost.org/trac/boost/changeset/45175

Log:
use system pool alloc instead of stdlib alloc
Binary files modified:
   sandbox/memory/libs/memory/bin/linux/libboost-memory.so
Text files modified:
   sandbox/memory/boost/memory/system_alloc.hpp | 4 ++--
   sandbox/memory/libs/memory/memory.prj.li | 8 ++++++++
   sandbox/memory/libs/memory/test/test_basic/memory/system_alloc_perform.cpp | 6 +++---
   sandbox/memory/libs/memory/test/test_basic/test.cpp | 4 ++--
   4 files changed, 15 insertions(+), 7 deletions(-)

Modified: sandbox/memory/boost/memory/system_alloc.hpp
==============================================================================
--- sandbox/memory/boost/memory/system_alloc.hpp (original)
+++ sandbox/memory/boost/memory/system_alloc.hpp 2008-05-06 11:20:42 EDT (Tue, 06 May 2008)
@@ -146,11 +146,11 @@
 // -------------------------------------------------------------------------
 // class system_alloc
 
-#if defined(_WIN32) && defined(BOOST_MEMORY_NO_SYSTEM_POOL)
+#if defined(BOOST_MEMORY_NO_SYSTEM_POOL)
 #define BOOST_MEMORY_NO_SYSTEM_POOL_DYN_
 #endif
 
-#if defined(_WIN32) && !defined(BOOST_MEMORY_NO_SYSTEM_POOL)
+#if !defined(BOOST_MEMORY_NO_SYSTEM_POOL)
 typedef system_pool_dyn system_alloc;
 #else
 typedef stdlib_alloc system_alloc;

Modified: sandbox/memory/libs/memory/bin/linux/libboost-memory.so
==============================================================================
Binary files. No diff available.

Modified: sandbox/memory/libs/memory/memory.prj.li
==============================================================================
--- sandbox/memory/libs/memory/memory.prj.li (original)
+++ sandbox/memory/libs/memory/memory.prj.li 2008-05-06 11:20:42 EDT (Tue, 06 May 2008)
@@ -9,6 +9,14 @@
 LibDir
 Libraries pthread
 
+[Config ReleaseCS]
+Product Dll bin/linux/boost-memory-cs
+Options Release; MultiThread; AnsiChar; NoRtti; Exception
+Defines BOOST_MEMORY_NO_LOCKFREE
+ObjDir LReleaseCS
+LibDir
+Libraries pthread
+
 [Config Debug]
 Product Dll bin/linuxd/boost-memory
 Options Debug; MultiThread; AnsiChar; NoRtti; Exception

Modified: sandbox/memory/libs/memory/test/test_basic/memory/system_alloc_perform.cpp
==============================================================================
--- sandbox/memory/libs/memory/test/test_basic/memory/system_alloc_perform.cpp (original)
+++ sandbox/memory/libs/memory/test/test_basic/memory/system_alloc_perform.cpp 2008-05-06 11:20:42 EDT (Tue, 06 May 2008)
@@ -67,14 +67,14 @@
                 doTestAlloc(nullLog, sysPool);
                 doTestAlloc(nullLog, sysPool2);
 
- log.trace("\n===== StdLibAlloc =====\n");
- doTestAlloc(log, stdLib);
-
                 log.trace("\n===== SystemPoolAlloc (LockFree) =====\n");
                 doTestAlloc(log, sysPool);
 
                 log.trace("\n===== SystemPoolAlloc (Lock) =====\n");
                 doTestAlloc(log, sysPool2);
+
+ log.trace("\n===== StdLibAlloc =====\n");
+ doTestAlloc(log, stdLib);
         }
 };
 

Modified: sandbox/memory/libs/memory/test/test_basic/test.cpp
==============================================================================
--- sandbox/memory/libs/memory/test/test_basic/test.cpp (original)
+++ sandbox/memory/libs/memory/test/test_basic/test.cpp 2008-05-06 11:20:42 EDT (Tue, 06 May 2008)
@@ -20,8 +20,8 @@
 
 int main()
 {
- testSystemAlloc();
-// testPerformance();
+// testSystemAlloc();
+ testPerformance();
 // simpleExamples();
 // testStlContainers();
         return 0;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk