Last call for 3.0.0

Mike Hommey mh+jemalloc at glandium.org
Wed May 9 07:45:15 PDT 2012


On Wed, May 09, 2012 at 07:27:10AM -0700, Justin Lebar wrote:
> Oh.
> 
> Did you port over a different version of chunk_alloc_mmap for Windows?
>  I don't recall seeing that in a patch.

Yes, I did.

> See Mozilla's jemalloc; we have to use a different strategy on Windows
> because Windows requires a 1:1 mapping between VirtualAlloc and
> VirtualFree.

I noticed that. I'll add an assertion on VirtualFree failing to see if
it could be that.

I've also been able to reproduce a similar issue on linux and osx
32-bits by enabling xmalloc (hard failures in case of OOM). The linux
one is apparently due to --disable-munmap not doing quite a good job,
but I'm not sure where the OSX one comes from (both OSX and Windows have
--enable-munmap by default).

BTW, I think we should madvise in chunk_dealloc_mmap when not
munmap()ing.

Mike



More information about the jemalloc-discuss mailing list