diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2024-05-05 20:51:26 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2024-05-05 20:51:26 +0000 |
commit | 520110086dbb3cbe543fc1930fab3bbac2becc21 (patch) | |
tree | fae84e875c7fd564838fea79956f3711218d60b8 /README.solaris | |
parent | 6d0c114f57bcd554383a41c9ca791e25e95b81b5 (diff) | |
download | s6-520110086dbb3cbe543fc1930fab3bbac2becc21.tar.xz |
s6-ftrigrd: don't have in-object pointers when reallocing
Make all pointers out-of-object, even if that means an
additional alloc.
Objects that move need to be flat, so in the absence of a
proper multi-object storage structure, deep allocs is the
only solution.
The alternative is to use gensetdyn so objects don't move,
but here we already have a ftrig1_t, a stralloc and a regex_t
making deep allocs, so who cares about one more - the overhead
of gensetdyn is probably more expensive.
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'README.solaris')
0 files changed, 0 insertions, 0 deletions