* malloc_wrapper.cc (malloc_init): Re-add inadvertently dropped comment which
explains what's going on with the use_internal calculation.
This commit is contained in:
parent
bc837d22f3
commit
2033ccdd17
@ -1,3 +1,8 @@
|
|||||||
|
2013-01-20 Christopher Faylor <me.cygwin2013@cgf.cx>
|
||||||
|
|
||||||
|
* malloc_wrapper.cc (malloc_init): Re-add inadvertently dropped comment
|
||||||
|
which explains what's going on with the use_internal calculation.
|
||||||
|
|
||||||
2013-01-20 Christopher Faylor <me.cygwin2013@cgf.cx>
|
2013-01-20 Christopher Faylor <me.cygwin2013@cgf.cx>
|
||||||
|
|
||||||
Throughout, update copyrights to reflect dates which correspond to
|
Throughout, update copyrights to reflect dates which correspond to
|
||||||
|
@ -284,6 +284,9 @@ malloc_init ()
|
|||||||
if (!internal_malloc_determined)
|
if (!internal_malloc_determined)
|
||||||
{
|
{
|
||||||
extern void *_sigfe_malloc;
|
extern void *_sigfe_malloc;
|
||||||
|
/* Decide if we are using our own version of malloc by testing the import
|
||||||
|
address from user_data. This will likely need to be updated
|
||||||
|
for 64-bit. */
|
||||||
use_internal = import_address (user_data->malloc) == &_sigfe_malloc;
|
use_internal = import_address (user_data->malloc) == &_sigfe_malloc;
|
||||||
malloc_printf ("using %s malloc", use_internal ? "internal" : "external");
|
malloc_printf ("using %s malloc", use_internal ? "internal" : "external");
|
||||||
internal_malloc_determined = true;
|
internal_malloc_determined = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user