aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>2024-03-18 14:56:13 -0400
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>2024-03-18 14:56:13 -0400
commitdbccd436729b2675ef87c0282bac8809a3b63127 (patch)
tree897bc72df8839afdea668dba7942b27abbf4a03a
parent4e8ae59d29be605f969eaf3c73cea10031bda324 (diff)
downloadlibrseq-dbccd436729b2675ef87c0282bac8809a3b63127.tar.gz
mempool: Rename DEFAULT_POISON_VALUE to DEFAULT_PRIVATE_POISON_VALUE
I expect the eventual default SHARED poison value to be 0x0 to eliminate useless allocation over zero pages for unused cpus. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Change-Id: I6faad228bce381485ed60cd92b3f155187a68b4e
-rw-r--r--src/rseq-mempool.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rseq-mempool.c b/src/rseq-mempool.c
index e0f7e49..de6adcc 100644
--- a/src/rseq-mempool.c
+++ b/src/rseq-mempool.c
@@ -54,9 +54,9 @@
#define RANGE_HEADER_OFFSET sizeof(struct rseq_mempool_range)
#if RSEQ_BITS_PER_LONG == 64
-# define DEFAULT_POISON_VALUE 0x5555555555555555ULL
+# define DEFAULT_PRIVATE_POISON_VALUE 0x5555555555555555ULL
#else
-# define DEFAULT_POISON_VALUE 0x55555555UL
+# define DEFAULT_PRIVATE_POISON_VALUE 0x55555555UL
#endif
struct free_list_node;
@@ -941,7 +941,7 @@ struct rseq_mempool *rseq_mempool_create(const char *pool_name,
attr.stride = RSEQ_MEMPOOL_STRIDE; /* Use default */
if (attr.robust_set && !attr.poison_set) {
attr.poison_set = true;
- attr.poison = DEFAULT_POISON_VALUE;
+ attr.poison = DEFAULT_PRIVATE_POISON_VALUE;
}
if (item_len > attr.stride || attr.stride < (size_t) rseq_get_page_len() ||
!is_pow2(attr.stride)) {