mempool: Rename pool policy
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 20 Mar 2024 15:26:33 +0000 (11:26 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 20 Mar 2024 15:26:33 +0000 (11:26 -0400)
commit805d0043db4c6d645a783c1a994d2d43a8e946e1
tree63fed658762c55b7744d46cfc6c2ce27c0387574
parentcabbbc8e64c53932e4fd570054ffb038d7806e36
mempool: Rename pool policy

Rename pool policy from:

RSEQ_MEMPOOL_POPULATE_PRIVATE_NONE -> RSEQ_MEMPOOL_POPULATE_COW_INIT
RSEQ_MEMPOOL_POPULATE_PRIVATE_ALL -> RSEQ_MEMPOOL_POPULATE_COW_ZERO

to make it clear to the user that the COW_ZERO pool policy benefits from
leaving the memory zero-allocated.

Also, now that zmalloc checks the prior content for zero to prevent
useless COW of the per-cpu ranges, the term "populate all" does not fit
well anymore. Copy-on-write from the zero page is clearer.

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