Commit 3ac9d5ac authored by Philippe Gerum's avatar Philippe Gerum

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.
parent 0291656b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment