On Friday, January 21, 2022 11:26:00 PM EST John Reiser wrote:
> It might be worthwhile to have a CFLAG that can tell glibc (or
other
> allocators) to substitute something like calloc for malloc.
The environment variable MALLOC_PERTURB_ has been used by glibc malloc
for over 15 years.
Fair point. Looking over the man page, it says: Setting MALLOC_PERTURB_ to
zero disables the feature. I was hoping memory could be wiped to 0 which is
a safer choice based on the literature I've read. But, yeah. An environmental
variable would do as a way to measure impact.
-Steve