summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-25 16:47:49 +0200
committermadmaxoft <github@xoft.cz>2013-08-25 16:47:49 +0200
commit6ea7c2b772ce889b2b9d3c3ee2f9c05aaef7c477 (patch)
treebde46c538abea65f4a3a362ecdddc0141a5bd84b
parentMerging in tigerw's changes from PR #118 (diff)
downloadcuberite-6ea7c2b772ce889b2b9d3c3ee2f9c05aaef7c477.tar
cuberite-6ea7c2b772ce889b2b9d3c3ee2f9c05aaef7c477.tar.gz
cuberite-6ea7c2b772ce889b2b9d3c3ee2f9c05aaef7c477.tar.bz2
cuberite-6ea7c2b772ce889b2b9d3c3ee2f9c05aaef7c477.tar.lz
cuberite-6ea7c2b772ce889b2b9d3c3ee2f9c05aaef7c477.tar.xz
cuberite-6ea7c2b772ce889b2b9d3c3ee2f9c05aaef7c477.tar.zst
cuberite-6ea7c2b772ce889b2b9d3c3ee2f9c05aaef7c477.zip
-rw-r--r--source/LeakFinder.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/LeakFinder.cpp b/source/LeakFinder.cpp
index 9af259e88..272e313a0 100644
--- a/source/LeakFinder.cpp
+++ b/source/LeakFinder.cpp
@@ -116,12 +116,15 @@
/* _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
+*
+* _X 2013_08_25: The callstack tracking gets worse even for MSVC 2008, a single lua_state eats 50 MiB of RAM
+* Therefore I decided to further reduce the buffers from 0x2000 to 0x1000
*/
// Controlling the callstack depth
#if (_MSC_VER < 1700)
- #define MAX_CALLSTACK_LEN_BUF 0x2000
-#else
#define MAX_CALLSTACK_LEN_BUF 0x1000
+#else
+ #define MAX_CALLSTACK_LEN_BUF 0x0800
#endif