diff options
author | Christopher Faylor <me@cgf.cx> | 2005-08-08 04:06:07 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-08-08 04:06:07 +0000 |
commit | 6a7bea70f0ec5a13f0f46be928f6c5284765ba53 (patch) | |
tree | 44294a6530e5b42e1a8ae827c856099a79bf3b44 /winsup/cygwin/dcrt0.cc | |
parent | cbda22eb63ac8841ed3f4ac94e0782dab562717a (diff) | |
download | cygnal-6a7bea70f0ec5a13f0f46be928f6c5284765ba53.tar.gz cygnal-6a7bea70f0ec5a13f0f46be928f6c5284765ba53.tar.bz2 cygnal-6a7bea70f0ec5a13f0f46be928f6c5284765ba53.zip |
* Makefile.in (dtable_CFLAGS): Use -fomit-frame-pointer and -fcheck-new.
* cygheap.cc (cmalloc): Only emit system_printf warnings on failure if
DEBUGGING.
(crealloc): Ditto.
(ccalloc): Ditto.
* dtable.cc (build_fh_name): Treat NULL return from cnew as indicative of
EMFILE condition.
(build_fh_dev): Ditto.
(dtable::dup_worker): Handle NULL return from build_fh_pc.
(dtable::vfork_child_dup): Trust dup_worker to set errno.
* fhandler.h (fhandler_base::new): Mark as nothrow.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 9fd9fa8ba..7cc3ea968 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -725,6 +725,11 @@ dll_crt0_1 (char *) check_sanity_and_sync (user_data); malloc_init (); +#ifdef CGF + int i = 0; + while (i) + cmalloc (HEAP_STR, 2000000); +#endif /* Initialize SIGSEGV handling, etc. */ init_exceptions (&cygwin_except_entry); |