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-11-16 11:15:49 +11:00
2023-08-31 12:53:32 -07:00
2023-08-21 18:39:53 +02:00
2023-10-13 14:44:40 +02:00
2023-11-29 14:16:20 +01:00
2023-07-31 15:51:15 +02:00
2023-11-29 14:16:20 +01:00
2023-11-14 08:59:48 +00:00
2023-09-16 07:32:18 +02:00
2023-09-12 16:14:10 +02:00
2023-07-31 18:11:34 +02:00
2023-02-28 11:44:15 +01:00
2023-08-31 22:08:35 +02:00
2023-10-24 13:07:03 +02:00
2023-07-27 11:37:44 +02:00
2023-09-13 14:31:43 +10:00
2023-07-17 14:50:25 +02:00
2023-08-31 22:08:35 +02:00
2023-09-24 18:07:40 +02:00
2023-11-20 08:31:39 +01:00
2023-04-03 12:06:04 +10:00
2023-04-03 12:06:04 +10:00
2023-08-09 23:48:17 +00:00
2023-03-08 08:36:25 +01:00
2023-09-28 00:32:44 -07:00
2023-08-31 12:53:32 -07:00
2023-06-29 08:28:48 +10:00
2023-08-31 22:08:35 +02:00
2023-10-13 14:44:40 +02:00
2023-08-31 22:08:35 +02:00
2023-08-02 11:16:50 +02:00
2023-08-15 12:21:41 +02:00
2023-08-01 08:56:52 +02:00
2023-09-28 00:32:44 -07:00
2023-03-23 12:57:01 -07:00
2023-10-10 16:57:18 +02:00
2023-10-17 17:47:46 +02:00
2023-08-31 12:53:32 -07:00
2023-11-16 11:15:49 +11:00
2023-09-12 16:14:10 +02:00
2023-09-28 00:32:44 -07:00
2023-09-18 13:38:27 +10:00
2023-10-17 17:47:46 +02:00
2023-03-08 08:36:25 +01:00
2023-10-13 09:57:28 +00:00
2023-09-01 12:01:20 +10:00
2023-08-15 12:21:41 +02:00
2023-03-08 08:36:25 +01:00
2023-09-01 12:01:20 +10:00
2023-09-01 12:01:20 +10:00
2023-09-01 12:01:20 +10:00
2023-10-17 17:47:46 +02:00
2023-08-21 18:39:53 +02:00
2023-09-28 00:32:39 -07:00
2023-10-26 00:32:22 -07:00
2023-07-17 14:50:25 +02:00
2023-08-31 22:08:35 +02: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-03-08 08:36:25 +01:00
2023-09-01 12:01:19 +10:00
2023-07-17 14:50:25 +02:00
2023-08-31 22:08:35 +02:00
2023-02-28 11:44:15 +01:00
2023-08-31 22:08:35 +02:00
2023-08-31 22:08:35 +02:00
2023-10-24 13:07:03 +02:00
2023-05-16 02:04:55 +00:00
2023-10-24 13:07:03 +02:00
2023-06-15 15:32:04 +02:00
2023-10-20 14:05:56 +11:00
2023-10-09 13:29:02 -07:00
2023-08-15 12:21:41 +02:00
2023-08-31 22:08:35 +02:00
2023-08-31 12:53:32 -07:00
2023-10-13 14:44:40 +02:00
2023-11-21 14:48:43 +11:00
2023-03-31 13:33:16 +02:00
2023-07-28 14:37:32 +10:00
2023-09-22 08:51:45 +00:00
2023-06-14 08:14:38 +00:00
2023-11-13 12:06:26 +00:00
2023-08-15 12:21:41 +02:00
2023-08-15 14:25:24 +02:00
2023-11-01 16:49:08 +01:00
2023-10-24 13:07:03 +02:00
2023-07-20 12:40:54 +02:00
2023-11-15 17:23:25 -08:00
2023-08-31 22:08:35 +02:00
2023-09-28 00:32:44 -07:00