]> git.kaiwu.me - haproxy.git/commit
MINOR: memprof: make in_memprof a bitfield instead of a counter
authorWilly Tarreau <w@1wt.eu>
Mon, 8 Jun 2026 07:39:43 +0000 (09:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 8 Jun 2026 11:46:18 +0000 (13:46 +0200)
commita7888f03731942205e3836bd1ecf6dec26cd9ed1
tree33384c237eb15a40aa8021104f7e6c4d4231c275
parentef191c46d7569712c538e93031fb3a6dca88defa
MINOR: memprof: make in_memprof a bitfield instead of a counter

It's not convenient to use it as it is now because it may only be
used to count passes via the memprof init code. Let's turn it to
a bitfield instead so that we can also check what we're doing there.
This is safe because all callers of memprof_init() check for the
bit being zero first so it's not reentrant.
src/activity.c