Jemalloc under CYGWIN
Wed Oct 21 14:44:00 GMT 2015
On Wed, Oct 21, 2015 at 10:15 PM, Corinna Vinschen
> On Oct 21 21:49, Yucong Sun wrote:
>> > What exactly is the malloc problem you're seeing?
>> The specific problem I'm having is that jemalloc's malloc_init() calls
>> needs to use pthread_mutex_init() or even pthread_mutex with a
>> initializer. Both in-turn uses malloc, triggering this issue.
>> A quick fix would be somehow make pthread always use system
>> malloc/free, which shouldn't be that bad.
> What about using a native critical section instead? It shouldn't be too
> tricky to conditionalize this in jemalloc.
Possibly, jemalloc already have support of this. However I wasn't so
sure that this was possible before,
More information about the Cygwin-developers