diff options
author | pfg <pfg@FreeBSD.org> | 2016-03-21 01:14:32 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-03-21 01:14:32 +0000 |
commit | fca9e3a6d3984e37090c921ad9fb457a3df6e7e1 (patch) | |
tree | 899c47d448bb3542dea1eab8661abeeedabddbc8 /sys/libkern/explicit_bzero.c | |
parent | 92c72abfb4c293198cc5f8cd7a2766d868c8bb18 (diff) | |
download | FreeBSD-src-fca9e3a6d3984e37090c921ad9fb457a3df6e7e1.zip FreeBSD-src-fca9e3a6d3984e37090c921ad9fb457a3df6e7e1.tar.gz |
MFC r296816:
libdtrace: use calloc(3) instead of malloc(3) when it makes sense.
calloc(3) is faster and occasionally safer than malloc(3) + bzero(3).
In one case, pointed out by Mark[1], this also cleans up a calculation.
Reviewed by: markj [1]
Diffstat (limited to 'sys/libkern/explicit_bzero.c')
0 files changed, 0 insertions, 0 deletions