]> git.ipfire.org Git - thirdparty/bind9.git/commit
Remove the internal memory allocator
authorOndřej Surý <ondrej@isc.org>
Thu, 4 Feb 2021 19:11:20 +0000 (20:11 +0100)
committerOndřej Surý <ondrej@sury.org>
Thu, 18 Feb 2021 18:32:02 +0000 (19:32 +0100)
commit55ace5d3aa4cb8c1b70a94679e1dd6d716dfd8bb
treee78f834d6de85502f2708150b7af971ec2487f54
parent706c57280ff118c106a084149bd618bc93f9a1bb
Remove the internal memory allocator

The internal memory allocator had an extra code to keep a list of blocks
for small size allocation.  This would help to reduce the interactions
with the system malloc as the memory would be already allocated from the
system, but there's an extra cost associated with that - all the
allocations/deallocations must be locked, effectively eliminating any
optimizations in the system allocator targeted at multi-threaded
applications. While the isc_mem API is still using locks pretty heavily,
this is a first step into reducing the memory allocation/deallocation
contention.
.gitlab-ci.yml
bin/named/main.c
bin/tests/system/start.pl
lib/isc/include/isc/mem.h
lib/isc/mem.c