]> git.ipfire.org Git - thirdparty/bind9.git/commit
fix: dev: Prevent false sharing for the .inuse member of isc_mem_t
authorOndřej Surý <ondrej@isc.org>
Mon, 30 Jun 2025 11:23:38 +0000 (13:23 +0200)
committerOndřej Surý <ondrej@isc.org>
Mon, 30 Jun 2025 11:23:38 +0000 (13:23 +0200)
commit38cc19d756a97f76bcbdaef519ac2aec0b2b1536
tree66bfc04c9e59f3fb445177cb806cc8627a7c6042
parentf9528b88aea6f84c3c7f5c61d9e0cadb61d99c59
parent5eec9a2ebb47ca0be513d415bba882744c1d2ed1
fix: dev: Prevent false sharing for the .inuse member of isc_mem_t

Change the .inuse member of memory context to have a loop-local
variable, so there's no contention even when the same memory
context is shared among multiple threads.

Closes #5354

Merge branch '5354-prevent-false-sharing-in-isc_mem' into 'main'

See merge request isc-projects/bind9!10555