From: Keir Fraser Subject: Re: [RFC][PATCH] add tlsf option for xmalloc Date: Wed, 15 Oct 2008 19:09:58 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Magenheimer , "Xen-Devel (E-mail)" Cc: Nitin Gupta List-Id: xen-devel@lists.xenproject.org On 15/10/08 18:47, "Dan Magenheimer" wrote: > Note that this is compile-tested but not run tested yet. I > thought I'd get feedback on the approach before I get much > further. The approach is fine as far as I'm concerned. It should just replace the existing xmalloc.c of course: no point in keeping the old one around. Therefore may as well put the whole implementation in xmalloc.c, or call it xmalloc_tlsf.c if you're really keen to keep the name of the algorithm in the file name (in which case xmalloc.c should be entirely deleted; or perhaps temporarily make it a build option which .c file gets built if really worried that the new xmalloc implementation may have subtle bugs and we'd like to be able to revert for testing). Structure definitions and the like which are private to TLSF should live at the top of the .c file: I prefer that to the approach as it keeps private non-shared stuff all in one place. -- Keir