Files
bind9/lib/dns
Ondřej Surý 14bdd21e0a Refactor the handling of isc_mem overmem condition
Previously, there were two methods of working with the overmem
condition:

1. hi/lo water callback - when the overmem condition was reached
   for the first time, the water callback was called with HIWATER
   mark and .is_overmem boolean was set internally.  Similarly,
   when the used memory went below the lo water mark, the water
   callback would be called with LOWATER mark and .is_overmem
   was reset.  This check would be called **every** time memory
   was allocated or freed.

2. isc_mem_isovermem() - a simple getter for the internal
   .is_overmem flag

This commit refactors removes the first method and move the hi/lo water
checks to the isc_mem_isovermem() function, thus we now have only a
single method of checking overmem condition and the check for hi/lo
water is removed from the hot path for memory contexts that doesn't use
overmem checks.
2023-11-29 14:16:20 +01:00
..
2023-10-13 14:44:40 +02:00
2023-09-12 16:14:10 +02:00
2023-08-31 22:08:35 +02:00
2023-08-31 22:08:35 +02:00
2023-08-09 23:48:17 +00:00
2023-08-02 11:16:50 +02:00
2023-10-10 16:57:18 +02:00
2023-09-12 16:14:10 +02:00
2023-10-13 09:57:28 +00:00
2023-09-12 16:14:10 +02:00
2023-07-17 14:50:25 +02:00
2023-08-31 22:08:35 +02:00
2023-08-31 22:08:35 +02:00
2023-10-09 13:29:02 -07:00
2023-08-31 22:08:35 +02:00
2023-10-13 14:44:40 +02:00
2023-11-21 14:48:43 +11:00
2023-06-14 08:14:38 +00:00
2023-08-15 14:25:24 +02:00