From 04565eeb83633f431a5303e0f15132ecc485c93e Mon Sep 17 00:00:00 2001 From: Philippe Gerum Date: Sat, 28 Apr 2018 18:28:10 +0200 Subject: [PATCH] boilerplate/tlsf: raise the fixed private heap size to 64k When --enable-pshared is passed, we currently have no mean to specify the size of the private heap managed by TLSF. Until this issue is fixed, increase the fixed size of the private heap to 64k, so that running OOM in the few remaining code spots calling the pvmalloc* API becomes unlikely. --- lib/boilerplate/tlsf/tlsf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/boilerplate/tlsf/tlsf.h b/lib/boilerplate/tlsf/tlsf.h index 766b992eb..aac4769c8 100644 --- a/lib/boilerplate/tlsf/tlsf.h +++ b/lib/boilerplate/tlsf/tlsf.h @@ -22,7 +22,7 @@ #include /* A basic heap size which won't be rejected by init_memory_pool(). */ -#define MIN_TLSF_HEAPSZ 8192 +#define MIN_TLSF_HEAPSZ 65536 extern size_t init_memory_pool(size_t, void *); extern size_t get_used_size(void *); -- GitLab