Module: xenomai-3 Branch: stable-3.0.x Commit: 04565eeb83633f431a5303e0f15132ecc485c93e URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=04565eeb83633f431a5303e0f15132ecc485c93e
Author: Philippe Gerum <r...@xenomai.org> Date: Sat Apr 28 18:28:10 2018 +0200 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 766b992..aac4769 100644 --- a/lib/boilerplate/tlsf/tlsf.h +++ b/lib/boilerplate/tlsf/tlsf.h @@ -22,7 +22,7 @@ #include <sys/types.h> /* 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 *); _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org https://xenomai.org/mailman/listinfo/xenomai-git