From 172343e86f8002d3eb7503ce11339e2ac8c8e650 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 24 Mar 2013 19:27:06 +0000 Subject: Tweaked LeakFinder for VC2012 debug build (too much housekeeping info allocated) http://forum.mc-server.org/showthread.php?tid=826&pid=6974#pid6974 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1314 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/LeakFinder.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/source/LeakFinder.cpp b/source/LeakFinder.cpp index fcafd44c2..d8d41883b 100644 --- a/source/LeakFinder.cpp +++ b/source/LeakFinder.cpp @@ -113,8 +113,20 @@ #endif +/* _X: MSVC 2012 (MSC 1700) seems to use a different allocation scheme for STL containers, +* allocating lots of small objects and running out of memory very soon +* Thus for MSVC 2012 we cut the callstack buffer length in half +*/ // Controlling the callstack depth -#define MAX_CALLSTACK_LEN_BUF 0x2000 +#if (_MSC_VER < 1700) + #define MAX_CALLSTACK_LEN_BUF 0x2000 +#else + #define MAX_CALLSTACK_LEN_BUF 0x1000 +#endif + + + + #define IGNORE_CRT_ALLOC -- cgit v1.2.3