|
From: | Ken Brown |
Subject: | Re: Dumper issue, revisited; invalid realloc/free |
Date: | Wed, 04 Feb 2015 15:34:40 -0500 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
On 2/4/2015 2:26 PM, Eli Zaretskii wrote:
Date: Wed, 4 Feb 2015 14:13:05 -0500 From: Rich Felker <address@hidden> Cc: address@hiddenYes. Several platforms (Cygwin and MinGW on MS-Windows) already do exactly that.Where is the code that does this? I don't see it in alloc.c.The Cygwin code is in sheap.c, the MinGW code is in w32heap.c.Is it only used when system_malloc=no? The case where it's really needed is for system_malloc=yes...MinGW uses that with system malloc. Not sure about Cygwin.
Cygwin (in the master branch) uses gmalloc.c before dumping and the system malloc after dumping. See the code in gmalloc.c involving HYBRID_MALLOC.
Ken
[Prev in Thread] | Current Thread | [Next in Thread] |