aboutsummaryrefslogtreecommitdiff
path: root/lib/std/atomic
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2021-05-16 11:51:39 +0200
committerAndrew Kelley <andrew@ziglang.org>2021-05-17 17:16:38 -0400
commitb7eab32f42040ecb80501111adb05bc8369625e8 (patch)
tree7fe250870ed8690ec8eb71bf1a5878debb6d47e5 /lib/std/atomic
parentfe1a166589db0f2371429c93e1e1e622c19378f1 (diff)
downloadzig-b7eab32f42040ecb80501111adb05bc8369625e8.tar.gz
zig-b7eab32f42040ecb80501111adb05bc8369625e8.zip
std: Allocate tlscsprng memory as needed
Let mmap allocate a block of memory that's wide enough to use with MADV_WIPEONFORK, madvise granularity is the current system page size (using a static buffer of mem.page_size bytes would be wrong, that's the minimum page size). As a result, we don't zero some random chunk of memory every time we fork the process. Fixes #7609
Diffstat (limited to 'lib/std/atomic')
0 files changed, 0 insertions, 0 deletions