]> git.ipfire.org Git - thirdparty/openssl.git/commit
reduce memory overhead of CTX_TABLE_ENTRY
authorNeil Horman <nhorman@openssl.org>
Tue, 17 Jun 2025 14:18:20 +0000 (10:18 -0400)
committerNeil Horman <nhorman@openssl.org>
Fri, 20 Jun 2025 17:01:39 +0000 (13:01 -0400)
commit68c1fcc99e344444f0e0885bfd27d3a776dd4ebf
tree59ac3bb4e05e028ff4782c439f19778f4d6d9af8
parentbbd886c501ed38d1256cf5eb445737a25aeb28f2
reduce memory overhead of CTX_TABLE_ENTRY

We don't need to allocate entries for the ctx table.  we can just make
it a sparse array of void* values, and set the thread-local data
directly.  This saves on allocation and cleanup costs

Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27794)
crypto/threads_common.c