]> git.kaiwu.me - haproxy.git/commit
CLEANUP: haload: embed rate_task into hld_thr_info structure
authorFrederic Lecaille <flecaille@haproxy.com>
Wed, 29 Jul 2026 07:47:30 +0000 (09:47 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Thu, 30 Jul 2026 07:26:43 +0000 (09:26 +0200)
commitca2ef0d72c03be6516725e92f4644f7537ae8c65
treefffee69a05f408c9bb2299c36639e119f64cfe5b
parent2b7f1cb2fe1281a6b8879e6a768d61166aa40c01
CLEANUP: haload: embed rate_task into hld_thr_info structure

Store the rate task directly inside the per-thread <hld_thr_info>
struct instead of keeping a separate global <hld_rate_tasks> array.

This simplifies memory management by grouping thread-specific tasks and
data together:

  - move rate task creation into <hld_alloc_thrs_info>
  - clean up rate tasks directly inside <hld_dealloc_thrs_info>
  - remove the separate <hld_dealloc_rate_task> helper and global array
src/haload.c