From: "Jan Beulich" Subject: xzalloc() & Co? Date: Wed, 21 Sep 2011 08:33:23 +0100 Message-ID: <4E79AF630200007800056F80@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org 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=3Dkernel-janitors&m=3D131615631720174&w=3D2). Jan