HomeFreeBSD

malloc: try to use builtins for zeroing at the callsite

Description

malloc: try to use builtins for zeroing at the callsite

Plenty of allocation sites pass M_ZERO and sizes which are small and known
at compilation time. Handling them internally in malloc loses this information
and results in avoidable calls to memset.

Instead, let the compiler take the advantage of it whenever possible.

Discussed with: jeff

Details

Provenance
mjgAuthored on
Parents
rS334544: top(1): Fix two speeling errors I introduced
Branches
Unknown
Tags
Unknown