MALLOC_OPTIONS behaviour

From: rihad <rihad_at_mail.ru>
Date: Sun, 30 Nov 2003 20:57:39 +0400
Under 5.2-BETA, if I run a program with "env MALLOC_OPTIONS=j" then all 
the malloc()'ed memory will be zeroed even though I did not ask for it 
(by specifying "Z"). Also, "J" (memset to 0xd0) even appears to run a 
somewhat *faster* than "j". Why doesn't "jz" return uninitialized memory 
and isn't the fastest of {jz,J,Z} (where J is the fastest)? I'm new to 
FreeBSD so I don't know if previously this worked as documented in 
malloc(3).

TIA
Received on Sun Nov 30 2003 - 07:57:39 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:31 UTC