Module: xenomai-3 Branch: stable-3.0.x Commit: 3ac9d5acffad2f99dbaa05e782142bde970a7f31 URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=3ac9d5acffad2f99dbaa05e782142bde970a7f31
Author: Philippe Gerum <[email protected]> Date: Thu Apr 12 12:23:54 2018 +0200 copperplate/registry: use plain malloc/free for obstacks Obstacks are grown from handlers called by the fusefs server thread, which has no real-time requirement: malloc/free is fine for memory management. --- include/copperplate/registry-obstack.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/copperplate/registry-obstack.h b/include/copperplate/registry-obstack.h index fe192fa..48e453b 100644 --- a/include/copperplate/registry-obstack.h +++ b/include/copperplate/registry-obstack.h @@ -29,11 +29,12 @@ struct threadobj; struct syncobj; /* - * Assume we may want fast allocation of private memory from real-time - * mode when growing the obstack. + * Obstacks are grown from handlers called by the fusefs server + * thread, which has no real-time requirement: malloc/free is fine for + * memory management. */ -#define obstack_chunk_alloc pvmalloc -#define obstack_chunk_free pvfree +#define obstack_chunk_alloc malloc +#define obstack_chunk_free free struct threadobj; _______________________________________________ Xenomai-git mailing list [email protected] https://xenomai.org/mailman/listinfo/xenomai-git
