Files
bind9/lib/isc/include/isc
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-08-31 22:08:35 +02:00
2023-03-10 17:31:28 +01:00
2023-03-10 17:31:28 +01:00
2023-09-19 19:56:33 +02:00
2023-04-03 12:08:05 +01:00
2023-02-16 18:35:32 +01:00
2023-10-25 12:36:13 +02:00
2023-02-15 16:44:47 +00:00
2023-02-16 18:35:32 +01:00
2023-07-17 14:50:25 +02:00
2023-03-31 13:33:16 +02:00
2023-02-15 16:44:09 +00:00
2023-09-16 07:32:17 +02:00