]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: activity: better use a mask to tests freeing methods
authorWilly Tarreau <w@1wt.eu>
Thu, 21 Nov 2024 09:08:03 +0000 (10:08 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 21 Nov 2024 18:58:06 +0000 (19:58 +0100)
commit623a2c4e19e3b0680f9b1ad3d4a04bd3c18b2274
tree7afd00dc0cb17652d7b331ca1ab3cf69eead8367
parentf3547d0b74ea1afe479538851ad2bddb44eded0a
CLEANUP: activity: better use a mask to tests freeing methods

In "show profiling memory", we need to distinguish methods which really
free memory from those which do not so that we don't account for the
free value twice. However for now it's done using multiple tests, which
are going to complicate the addition of new methods. Let's switch to a
bit field defined as a mask in a single place instead, as we don't
intend to use more than 32/64 methods!
include/haproxy/activity-t.h
src/activity.c