mempool: implement malloc_init
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 10 Mar 2024 19:06:16 +0000 (15:06 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 10 Mar 2024 19:06:16 +0000 (15:06 -0400)
commit6ff43d9ad593cc7595b4dcab098cde844e96a992
tree3776bb04d84963709ebb1c00b75702f7612392dc
parent5e00053581a52efeee2a84fefb04918aeed41b7e
mempool: implement malloc_init

Add a *_malloc_init to the API to allow allocating memory initialized to
a given initial value.

This replaces application patterns where a loop on all possible CPUs is
needed after allocation to initialize memory to a given nonzero value,
and will eventually allow doing the initialization lazily (the first
time the cpu touches memory within the pool).

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I3acb1505d7b4f46ceb6a8128d2ebda346b8e359c
include/rseq/mempool.h
src/rseq-mempool.c
This page took 0.02855 seconds and 4 git commands to generate.