]> git.kaiwu.me - haproxy.git/commit
MINOR: stream: add per-stream memory slots
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 30 Oct 2026 11:56:50 +0000 (12:56 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 4 Nov 2026 15:00:43 +0000 (15:00 +0000)
commitd341fd3ee64762486c292609815433063218c218
tree309c9746ec210212642677a47522023920cf232b
parenta6e3f3211aabd32639a01333b99a164f9657359b
MINOR: stream: add per-stream memory slots

Add stream_reserve_memslot() to reserve pointer-aligned per-stream storage
during single-threaded initialization, before streams exist. Access the
reserved slots with stream_get_memslot().

Reserved storage is zeroed at stream creation, preserved for the stream's
lifetime and released on destruction.
include/haproxy/stream-t.h
include/haproxy/stream.h
src/stream.c