Skip to content
Commit c7c6028f authored by Frantisek Sumsal's avatar Frantisek Sumsal Committed by Zbigniew Jędrzejewski-Szmek
Browse files

hashmap: avoid using TLS in a destructor

Using C11 thread-local storage in destructors causes uninitialized
read. Let's avoid that using a direct comparison instead of using
the cached values. As this code path is taken only when compiled
with -DVALGRIND=1, the performance cost shouldn't matter too much.

Fixes #12814

(cherry picked from commit 31c9d74d)
(cherry picked from commit ffa47f67)
parent b27c8f70
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment