aboutsummaryrefslogtreecommitdiff
path: root/src/dlmalloc.c
diff options
context:
space:
mode:
authorJeff Terrace <jterrace@gmail.com>2012-01-10 14:44:43 -0500
committerJeff Terrace <jterrace@gmail.com>2012-01-10 14:44:43 -0500
commitef3c715e8338b1f076d89239fe20aaa69956d743 (patch)
tree56f377897ca627a02955f918f56c792cbd59cae2 /src/dlmalloc.c
parent66a79e74a4d01f6cfc6fb8e289a00896e397d12f (diff)
Update stub malloc to byte-align by 8, update dlmalloc not to use mmap, and update mmap to use malloc when MAP_ANONYMOUS
Diffstat (limited to 'src/dlmalloc.c')
-rw-r--r--src/dlmalloc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dlmalloc.c b/src/dlmalloc.c
index aa37dc0d..6185b1c7 100644
--- a/src/dlmalloc.c
+++ b/src/dlmalloc.c
@@ -588,7 +588,10 @@ MAX_RELEASE_CHECK_RATE default: 4095 unless not HAVE_MMAP
#define INSECURE 0
#endif /* INSECURE */
#ifndef HAVE_MMAP
-#define HAVE_MMAP 1
+/* XXX Emscripten
+ * mmap uses malloc, so malloc can't use mmap
+ */
+#define HAVE_MMAP 0
#endif /* HAVE_MMAP */
#ifndef MMAP_CLEARS
#define MMAP_CLEARS 1