* 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.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user