Configuration Script for Windows

Jos Vernon jv at
Thu Nov 19 02:08:05 PST 2015


I've been using the GitHub shines77/jemalloc-win32 for a while -  that uses
jemalloc 3.6.0.

However recently I've hit problems relating to leaks in highly threaded
environments. I know these are jemalloc related because if I swap out
jemalloc for a different memory manager then they go away.

So it would seem to me that the first thing to do is to upgrade to 4.0.4 to
see if the issue is resolved. However I am having some problem getting this
to work under MSVC.

I can see that this is supposed to work because I can see MSVC bits in the
config code. However there are lots of questions about this and a notable
dearth of people who have been successful in this area. That includes me
after my first day. :-(

The MSVC bit is easy. It's getting the config to generate the right bits
that is difficult.

I'm using cygwin. I've put the Visual Studio 2012 environment variables
into my shell so I can use MSVC CL and then I've done an ./

This seems to work more or less ok. The results look feasible,.But then I'm
missing important bits like sensible values in size_classes.h.

I would love any pointers here. I'm pretty hot on VC++ so once I get the
config going it will be fine. I am sure that will also be useful for other
people who want to do similar things.


jos vernon
.NET Image Components & Consultancy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the jemalloc-discuss mailing list