From 403661477784e848f86cb2faf43e31708a2eb8cd Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Fri, 21 Feb 2014 17:05:41 +0100 Subject: [PATCH] Patching malloc: increasing __malloc_margin to 128 --- avr-libc-patches/01-arduino-malloc_margin.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 avr-libc-patches/01-arduino-malloc_margin.patch diff --git a/avr-libc-patches/01-arduino-malloc_margin.patch b/avr-libc-patches/01-arduino-malloc_margin.patch new file mode 100644 index 0000000..737e890 --- /dev/null +++ b/avr-libc-patches/01-arduino-malloc_margin.patch @@ -0,0 +1,11 @@ +--- a/libc/stdlib/malloc.c 2014-02-21 17:03:40.606098680 +0100 ++++ b/libc/stdlib/malloc.c 2014-02-21 17:03:51.946098314 +0100 +@@ -56,7 +56,7 @@ + + /* May be changed by the user only before the first malloc() call. */ + +-size_t __malloc_margin = 32; ++size_t __malloc_margin = 128; + char *__malloc_heap_start = &__heap_start; + char *__malloc_heap_end = &__heap_end; +