summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-24 20:27:06 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-24 20:27:06 +0100
commit172343e86f8002d3eb7503ce11339e2ac8c8e650 (patch)
tree2e59e83d078293c876112c8d709d18a7b6b4fe22
parentMemDumpAnalysis now outputs the count of allocated blocks, too. (diff)
downloadcuberite-172343e86f8002d3eb7503ce11339e2ac8c8e650.tar
cuberite-172343e86f8002d3eb7503ce11339e2ac8c8e650.tar.gz
cuberite-172343e86f8002d3eb7503ce11339e2ac8c8e650.tar.bz2
cuberite-172343e86f8002d3eb7503ce11339e2ac8c8e650.tar.lz
cuberite-172343e86f8002d3eb7503ce11339e2ac8c8e650.tar.xz
cuberite-172343e86f8002d3eb7503ce11339e2ac8c8e650.tar.zst
cuberite-172343e86f8002d3eb7503ce11339e2ac8c8e650.zip
-rw-r--r--source/LeakFinder.cpp14
1 files changed, 13 insertions, 1 deletions
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