Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
From aaa3428877546e7dff686e4e526f886becc59323 Mon Sep 17 00:00:00 2001
From: Siarhei Siamashka <siarhei.siamashka@gmail.com>
Date: Mon, 25 Jul 2016 19:43:58 +0300
Subject: [PATCH] musl nothreshold malloc
---
src/malloc/malloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/malloc/malloc.c b/src/malloc/malloc.c
index b90636c..2f2d074 100644
--- a/src/malloc/malloc.c
+++ b/src/malloc/malloc.c
@@ -39,7 +39,7 @@ static struct {
#define SIZE_ALIGN (4*sizeof(size_t))
#define SIZE_MASK (-SIZE_ALIGN)
#define OVERHEAD (2*sizeof(size_t))
-#define MMAP_THRESHOLD (0x1c00*SIZE_ALIGN)
+#define MMAP_THRESHOLD (0x00*SIZE_ALIGN)
#define DONTCARE 16
#define RECLAIM 163840
--
2.7.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.