From 2033ccdd173feb5a4c2978d547bbd6669ff0f84e Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 21 Jan 2013 04:43:48 +0000 Subject: * malloc_wrapper.cc (malloc_init): Re-add inadvertently dropped comment which explains what's going on with the use_internal calculation. --- winsup/cygwin/malloc_wrapper.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'winsup/cygwin/malloc_wrapper.cc') diff --git a/winsup/cygwin/malloc_wrapper.cc b/winsup/cygwin/malloc_wrapper.cc index bbf629829..46493b775 100644 --- a/winsup/cygwin/malloc_wrapper.cc +++ b/winsup/cygwin/malloc_wrapper.cc @@ -284,6 +284,9 @@ malloc_init () if (!internal_malloc_determined) { 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; malloc_printf ("using %s malloc", use_internal ? "internal" : "external"); internal_malloc_determined = true; -- cgit v1.2.3