[Bug 225626] r325865 malloc vs bzero

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Feb 2 17:39:41 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225626

Brooks Davis <brooks at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |brooks at FreeBSD.org
         Resolution|---                         |Works As Intended
             Status|New                         |Closed

--- Comment #1 from Brooks Davis <brooks at FreeBSD.org> ---
I'd agree it's pointless, but there's seriously nothing wrong with the fix
other than making a path that isn't performance relevant slightly slower.  If
you want to submit a patch that would likely be fine.  Bug reports aren't the
places for this discussion.

Note that memset should be used in preference to bzero as the compiler should
be able to elide most of the cost of the memset since it can emit it inline and
then delete the dead stores.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list