Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Feb 2018 17:39:38 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 225626] r325865 malloc vs bzero
Message-ID:  <bug-225626-8-RsDlqNTq6z@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-225626-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-225626-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

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

Brooks Davis <brooks@FreeBSD.org> changed:

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

--- Comment #1 from Brooks Davis <brooks@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.


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-225626-8-RsDlqNTq6z>