Re: Rounding to the jemalloc bucket size

2017-04-27 Thread Henri Sivonen
On Thu, Apr 27, 2017 at 10:37 AM, Marco Bonardo wrote: > I'm far from being an expert here, but I seem to remember from Storage that > we have malloc_good_size Thank you! I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1360139 and https://bugzilla.mozilla.org/show_bug.cgi?id=1360138 . --

Re: Rounding to the jemalloc bucket size

2017-04-27 Thread Marco Bonardo
I'm far from being an expert here, but I seem to remember from Storage that we have malloc_good_size On Thu, Apr 27, 2017 at 9:24 AM, Henri Sivonen wrote: > For growable buffer types that internally contain the logical length > (how many slots of the buffer are in use as far as external callers

Rounding to the jemalloc bucket size

2017-04-27 Thread Henri Sivonen
For growable buffer types that internally contain the logical length (how many slots of the buffer are in use as far as external callers are concerned) and capacity (the actual allocation length of the buffer), the capacity should ideally always equal to a bucket size of the underlying allocator. O