]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[9.18] fix: usr: Clean enough memory when adding new ADB names/entries under memory...
authorOndřej Surý <ondrej@isc.org>
Fri, 11 Jul 2025 13:29:49 +0000 (15:29 +0200)
committerOndřej Surý <ondrej@isc.org>
Fri, 11 Jul 2025 13:29:49 +0000 (15:29 +0200)
The ADB memory cleaning is opportunistic even when we are under
memory pressure (in the overmem condition).  Split the opportunistic
LRU cleaning and overmem cleaning and make the overmem cleaning
always cleanup double of the newly allocated adbname/adbentry to
ensure we never allocate more memory than the assigned limit.

Backport of MR !10637

Merge branch 'backport-ondrej/enforce-memory-cleanup-in-ADB-when-overmem-9.18' into 'bind-9.18'

See merge request isc-projects/bind9!10708


Trivial merge