Skip to content
Commit ffa47f67 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)
parent 8027e5ca
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