[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] [PATCH 1/3] Typesafe allocators

On Wed, 2005-02-02 at 11:31 +0000, Ian Pratt wrote:
> > While reading through the sources, I noticed that you've already
> > diverged from "kmalloc" to xmalloc, so I thought it worth trying a
> > typesafe allocator (something I have long missed in Linux).
> We like the concept of this patch (and the other two), but renaming
> xmalloc to 'new' has triggered all sorts of c++ antibodies. In
> particular, its hard to grep for 'new'. 
> Can we just keep the xmalloc name but make it type safe, and add
> xmalloc_array?

Sure, if you prefer that.  I actually like "new", but the grep issue is
real.  I'll redo the patch.

I wanted to use talloc
( http://samba.org/ftp/unpacked/junkcode/talloc/ ) but there simply
isn't enough dynamic allocation to make it worthwhile...

A bad analogy is like a leaky screwdriver -- Richard Braakman

This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.