From 3410d5ae8f492c1cb51af1a22791101889d27e2c Mon Sep 17 00:00:00 2001 From: rich_sposato Date: Fri, 9 Sep 2005 00:25:48 +0000 Subject: [PATCH] Added call to the allocator's new_handler to trim memory as part of test. git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@230 7ec92016-0320-0410-acc4-a06ded1c099a --- test/SmallObj/SmallObjBench.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/SmallObj/SmallObjBench.cpp b/test/SmallObj/SmallObjBench.cpp index a451508..e8c37d5 100755 --- a/test/SmallObj/SmallObjBench.cpp +++ b/test/SmallObj/SmallObjBench.cpp @@ -130,6 +130,7 @@ int main() run_new_delete(loop,t,"new & delete C : "); cout << endl << endl; +// Loki::AllocatorSingleton<>::ClearExtraMemory(); //////////////////////////////////////////////////////////////////////////////// int N = 100000; @@ -152,6 +153,7 @@ int main() run_new_delete(c,N,loop2,t,"new & delete C on array : "); cout << endl << endl; +// Loki::AllocatorSingleton<>::ClearExtraMemory(); //////////////////////////////////////////////////////////////////////////////// @@ -174,6 +176,7 @@ int main() delete [] c; cout << endl << endl; +// Loki::AllocatorSingleton<>::ClearExtraMemory(); //////////////////////////////////////////////////////////////////////////////// @@ -185,10 +188,9 @@ int main() run_new_delete_array(N,loop,t,"new & delete [] C : "); cout << endl << endl; + Loki::AllocatorSingleton<>::ClearExtraMemory(); //////////////////////////////////////////////////////////////////////////////// - - cout << endl; system("PAUSE");