Change many cygheap allocation routines to their *_abort analogs.
* cygheap.cc (cmalloc_abort): New function. (crealloc_abort): Ditto. (ccalloc_abort): Ditto.
This commit is contained in:
@@ -983,7 +983,7 @@ fhandler_dev_dsp::open (int flags, mode_t mode)
|
||||
nohandle (true);
|
||||
|
||||
// FIXME: Do this better someday
|
||||
fhandler_dev_dsp *arch = (fhandler_dev_dsp *) cmalloc (HEAP_ARCHETYPES, sizeof (*this));
|
||||
fhandler_dev_dsp *arch = (fhandler_dev_dsp *) cmalloc_abort (HEAP_ARCHETYPES, sizeof (*this));
|
||||
archetype = arch;
|
||||
*((fhandler_dev_dsp **) cygheap->fdtab.add_archetype ()) = arch;
|
||||
*arch = *this;
|
||||
|
Reference in New Issue
Block a user