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
This commit is contained in:
rich_sposato 2005-09-09 00:25:48 +00:00
parent c78269f482
commit 3410d5ae8f

View file

@ -130,6 +130,7 @@ int main()
run_new_delete<C>(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<C>(N,loop,t,"new & delete [] C : ");
cout << endl << endl;
Loki::AllocatorSingleton<>::ClearExtraMemory();
////////////////////////////////////////////////////////////////////////////////
cout << endl;
system("PAUSE");