Subject: Re: malloc_usable_size () call under NetBSD
To: None <tech-kern@netbsd.org>
From: Christos Zoulas <christos@astron.com>
List: tech-kern
Date: 07/20/2007 18:39:24
In article <20070720121330.GA1269@britannica.bec.de>,
Joerg Sonnenberger  <joerg@britannica.bec.de> wrote:
>On Fri, Jul 20, 2007 at 12:21:33PM +0200, Vincent wrote:
>> I've tried to compiled the XaraLX vector graphics program that seems to 
>> have been ported on FreeBSD. However, it fails at the first file, 
>> complaining to lack the "malloc_usable_size ()" system call. After a bit 
>> of googling (?), I found that this call had been added on FreeBSD 7 (so 
>> that's pretty recent). Wherefore, question: how to emulate this call 
>> under NetBSD, if this is possible.
>
>If we ever want to get this into pkgsrc, DO NOT USE THAT CALL. It is
>completely bogus exposure of malloc internals. Check carefully for what
>they use it. It is either a (stupid) attempt to optimise behind the back
>of realloc or fundamentally broken.

Totally agree.

christos