Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-03-04 08:31:14 +0300
committerChristopher Faylor <me@cgf.cx>2004-03-04 08:31:14 +0300
commit08b0a057eb40204cd187e898b272b09eaec47391 (patch)
tree244fcc9699a7ba0f390e51c1b75a6f43d7776725 /winsup/cygwin/malloc_wrapper.cc
parent13a47bd66a97e146afef8b6f92bbbefbbf956a1b (diff)
* gendef (sigreturn): Call stabilize_sig_stack to ensure that there are no
pending signals. Restore edx later. (sigdelayed): Save edx earlier. * malloc_wrapper.cc (malloc_init): Add some more debugging output.
Diffstat (limited to 'winsup/cygwin/malloc_wrapper.cc')
-rw-r--r--winsup/cygwin/malloc_wrapper.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/winsup/cygwin/malloc_wrapper.cc b/winsup/cygwin/malloc_wrapper.cc
index 04d4f66ed..179b91b03 100644
--- a/winsup/cygwin/malloc_wrapper.cc
+++ b/winsup/cygwin/malloc_wrapper.cc
@@ -255,15 +255,20 @@ malloc_init ()
new_muto (mallock);
#ifndef MALLOC_DEBUG
- /* Check if mallock is provided by application. If so, redirect all
+ /* Check if malloc is provided by application. If so, redirect all
calls to malloc/free/realloc to application provided. This may
happen if some other dll calls cygwin's malloc, but main code provides
its own malloc */
if (!user_data->forkee)
{
user_data->free (user_data->malloc (16));
- if (!export_malloc_called)
- use_internal_malloc = 0;
+ if (export_malloc_called)
+ malloc_printf ("using internal malloc");
+ else
+ {
+ use_internal_malloc = 0;
+ malloc_printf ("using external malloc");
+ }
}
#endif
}