aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-04-28 10:53:05 -0400
committerNick Mathewson <nickm@torproject.org>2017-04-28 10:55:10 -0400
commit531835f5611994def74d790f43df01d828724513 (patch)
tree0eaef3ff7ca2988c69c2a9382f8189e2d027283c /src
parent00a12337ff068d47d92352541665ee73cbd9ff4b (diff)
downloadtor-531835f5611994def74d790f43df01d828724513.tar.gz
tor-531835f5611994def74d790f43df01d828724513.zip
Increase MALLOC_MP_LIM to 16MB
Increase the maximum allowed size passed to mprotect(PROT_WRITE) from 1MB to 16MB. This was necessary with the glibc allocator in order to allow worker threads to allocate more memory -- which in turn is necessary because of our new use of worker threads for compression. Closes ticket #22096. Found while working on #21648.
Diffstat (limited to 'src')
-rw-r--r--src/common/sandbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index ddb1f02b05..ab2de52592 100644
--- a/src/common/sandbox.c
+++ b/src/common/sandbox.c
@@ -20,7 +20,7 @@
#endif
/** Malloc mprotect limit in bytes. */
-#define MALLOC_MP_LIM 1048576
+#define MALLOC_MP_LIM (16*1024*1024)
#include <stdio.h>
#include <string.h>