We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c89bd3 commit 0615810Copy full SHA for 0615810
src/malloc/malloc.c
@@ -6,8 +6,9 @@
6
7
void set_malloc_flags() {
8
#ifndef __APPLE__
9
- setenv("MALLOC_PERTURB_", "85", 1);
10
- setenv("MALLOC_CHECK_", "2", 1);
+ setenv("MALLOC_PERTURB_", "85", 1); // Data is overwritten
+ setenv("MALLOC_CHECK_", "2", 1); // Enable some internal checks
11
+ setenv("MALLOC_MMAP_THRESHOLD_", "1", 1); // Always use mmap()
12
#else
13
// setenv("DYLD_INSERT_LIBRARIES", "/usr/lib/libgmalloc.dylib", 1);
14
setenv("MallocGuardEdges", "1", 1);
0 commit comments