@@ -10,7 +10,9 @@
/**
* Memory map size.
*/
-#if !(defined __LP64__ || defined __LLP64__) || \
+#if (defined DEBUG)
+ #define DEFAULT_MAPSIZE 1<<24 // 16Mb (limit for Valgrind)
+#elif !(defined __LP64__ || defined __LLP64__) || \
defined _WIN32 && !defined _WIN64
#define DEFAULT_MAPSIZE 1<<31 // 2Gb (limit for 32-bit systems)
#else