vercingetorx
b8e13bd421
Fix memory leak in asyncdispatch.withTimeout by clearing losing callbacks ( #25567 )
...
withTimeout currently leaves the “losing” callback installed:
- when fut finishes first, timeout callback remains until timer fires,
- when timeout fires first, fut callback remains on the wrapped future.
Under high-throughput use with large future payloads, this retains
closures/future references longer than needed and causes large transient
RSS growth.
This patch clears the opposite callback immediately once outcome is
decided, reducing retention without changing API behavior.
(cherry picked from commit 9ed4077d9a )
2026-03-02 11:02:10 +01:00
..
2025-10-27 08:51:07 +01:00
2025-01-14 13:15:55 +01:00
2024-05-29 06:42:07 +02:00
2025-01-14 07:47:40 +01:00
2021-07-07 06:00:59 +02:00
2025-01-14 07:33:01 +01:00
2023-10-30 17:03:04 +01:00
2026-03-02 11:02:10 +01:00
2015-02-03 09:04:24 +01:00
2025-09-12 14:41:35 +02:00
2025-01-15 10:20:29 +01:00
2025-01-14 13:15:55 +01:00
2025-04-04 10:08:49 +02:00
2025-07-10 20:00:30 +02:00
2023-10-30 17:03:04 +01:00
2026-02-26 17:25:46 +01:00
2023-10-30 17:03:04 +01:00
2024-03-03 17:27:27 +01:00
2025-09-22 08:47:08 +02:00
2025-01-14 13:15:55 +01:00
2025-02-05 21:04:43 +01:00
2023-10-30 17:03:04 +01:00
2023-10-30 17:03:04 +01:00
2015-10-01 12:05:45 -07:00
2025-01-14 13:23:44 +01:00
2024-05-16 23:22:49 +02:00
2025-01-14 13:15:55 +01:00
2025-01-14 13:15:55 +01:00
2025-01-14 13:15:55 +01:00
2024-06-02 09:36:20 +08:00
2026-01-09 08:49:09 +01:00
2025-01-14 13:15:55 +01:00
2025-01-15 10:17:51 +01:00
2026-01-09 08:48:46 +01:00
2025-01-14 13:15:55 +01:00
2025-01-14 13:15:55 +01:00
2021-01-09 00:24:41 +01:00
2024-07-01 20:47:39 +02:00
2025-01-14 13:15:55 +01:00
2025-01-14 13:15:55 +01:00
2025-03-03 14:01:55 +01:00
2025-01-14 13:15:55 +01:00
2026-01-09 09:12:03 +01:00
2025-01-14 13:15:55 +01:00
2025-04-14 10:51:58 +02:00
2025-01-15 10:17:51 +01:00
2025-01-14 13:15:55 +01:00
2015-02-03 09:04:24 +01:00
2025-01-14 13:15:55 +01:00
2024-06-05 20:54:25 +02:00
2025-06-27 13:43:34 +02:00
2025-10-07 13:19:49 +02:00
2026-01-09 09:11:40 +01:00
2023-10-30 17:03:04 +01:00
2023-10-30 17:03:04 +01:00
2026-02-20 09:02:37 +01:00
2025-09-12 14:42:17 +02:00
2025-01-27 08:50:04 +01:00
2025-01-14 13:23:44 +01:00
2025-01-14 13:23:44 +01:00
2026-01-09 09:11:40 +01:00
2022-12-03 21:25:49 +08:00
2026-02-21 12:58:25 +01:00
2024-01-18 14:32:22 +01:00
2023-10-30 17:03:04 +01:00
2025-01-15 10:17:51 +01:00
2023-10-30 17:03:04 +01:00
2025-09-12 14:42:42 +02:00
2023-10-30 17:03:04 +01:00
2020-06-06 21:11:53 +02:00
2025-01-14 13:23:44 +01:00
2026-03-02 11:02:01 +01:00
2025-04-14 10:51:08 +02:00
2025-01-14 13:23:44 +01:00
2024-07-01 20:47:08 +02:00
2025-03-13 12:25:54 +01:00
2023-10-30 17:03:04 +01:00
2025-10-30 20:31:06 +01:00
2024-08-28 20:51:13 +02:00
2025-12-18 20:52:38 +01:00
2026-02-21 12:58:25 +01:00
2025-01-14 13:23:44 +01:00
2025-11-15 12:26:05 +01:00
2025-11-15 12:25:56 +01:00
2025-01-14 13:23:44 +01:00
2025-01-14 13:15:25 +01:00
2025-01-14 13:23:44 +01:00
2025-01-14 13:23:44 +01:00