Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
Description
Instead of doing this in e.g. the builders, we should move this logic to the Allocator. For example, jemalloc provides a flag MALLOCX_ZERO to indicate that an allocated region should be zeroed. The POSIX API also provides the (sadly unaligned) calloc call that returns zeroed pages.
The speciality here is that the pages may already be zeroed by the OS for security reasons (i.e. so that one process does not see the content of the process that previously owned this page).