diff options
| author | LemonBoy <thatlemon@gmail.com> | 2021-05-16 11:51:39 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-05-17 17:16:38 -0400 |
| commit | b7eab32f42040ecb80501111adb05bc8369625e8 (patch) | |
| tree | 7fe250870ed8690ec8eb71bf1a5878debb6d47e5 /lib/std/math/complex/exp.zig | |
| parent | fe1a166589db0f2371429c93e1e1e622c19378f1 (diff) | |
| download | zig-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/math/complex/exp.zig')
0 files changed, 0 insertions, 0 deletions
