Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191128222211.GO16318@brightrain.aerifal.cx>
Date: Thu, 28 Nov 2019 17:22:11 -0500
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: Re: New malloc - first preview

On Thu, Nov 28, 2019 at 04:56:42PM -0500, Rich Felker wrote:
> Work on the new malloc is well underway, and I have a draft version
> now public at:
> 
> https://github.com/richfelker/mallocng-draft
> 
> Some highlights:
> 
> - Smallest size-class now has 12 of 16 bytes usable for storage,
>   compared to 8 of 16 (32-bit archs) or 16 of 32 (64-bit archs) with
>   the old malloc, plus 1.5 bytes (32-bit) or 2.5 bytes (64-bit) of
>   out-of-band metadata. This overhead (5.5 or 6.5 bytes per
>   allocation) is uniform across all sizes.

Make that 6 or 7 since there's also a 16-byte (counting alignment,
which is most of it) group header that imposes 0.5 bytes of overhead
per slot for a full-length 32-slot group.

Rich

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.