]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: debug/threads: make the lock debugging take tgroups into account
authorWilly Tarreau <w@1wt.eu>
Fri, 15 Jul 2022 15:53:10 +0000 (17:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Jul 2022 17:41:26 +0000 (19:41 +0200)
commit7aa41196cfd288769d47de1d0ec20008ed85aa81
tree08fff89bddf215b1e8d4cbe4e218b54d7436bc5f
parent4d9888ca694390891840037660f4b6afdb58e355
MEDIUM: debug/threads: make the lock debugging take tgroups into account

Since we have to use masks to verify owners/waiters, we have no other
option but to have them per group. This definitely inflates the size
of the locks, but this is only used for extreme debugging anyway so
that's not dramatic.

Thus as of now, all masks in the lock stats are local bit masks, derived
from ti->ltid_bit. Since at boot ltid_bit might not be set, we just take
care of this situation (since some structs are initialized under look
during boot), and use bit 0 from group 0 only.
include/haproxy/thread-t.h
src/thread.c