From: Keir Fraser Subject: Re: xzalloc() & Co? Date: Wed, 21 Sep 2011 06:41:29 -0700 Message-ID: References: <4E79AF630200007800056F80@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4E79AF630200007800056F80@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 21/09/2011 00:33, "Jan Beulich" wrote: > While I seem to recall that this idea was rejected a couple of years back, > shouldn't we re-think and follow e.g. Linux in having zeroing variants of > xmalloc() & Co? That would not only reduce code size, but also eliminate > one source of potential bugs (see e.g. the thread starting at > http://marc.info/?l=kernel-janitors&m=131615631720174&w=2). I don't know why we'd have rejected the idea. It sounds fine to me. -- Keir > Jan > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel