* 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.
This commit is contained in:
Christopher Faylor
2004-03-04 05:31:14 +00:00
parent 13a47bd66a
commit 08b0a057eb
5 changed files with 50 additions and 38 deletions

View File

@ -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
}