Skip to contentSkip to conversation

xzalloc() & Co?

DISCUSSION Jan Beulich 2 participants 2 messages Sep 21, 2011

lore
Share & tools
lore
#0 lore raw

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).

Jan

#1 lore raw
Quoted 5 lines · Jan Beulich

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

Quoted 7 lines

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel