diff options
author | Christopher Faylor <me@cgf.cx> | 2007-11-27 00:30:49 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2007-11-27 00:30:49 +0300 |
commit | ee4388c4200ed46ebeb8509f6dd204a6476017dc (patch) | |
tree | 55fd4f1c7f8e169eb4aad0c646333be0cc2a1da3 /winsup/cygwin/cygtls.cc | |
parent | 32cba6cb3a8366df854ba24ece2a60f1b2f872a3 (diff) |
Change many cygheap allocation routines to their *_abort analogs.
* cygheap.cc (cmalloc_abort): New function.
(crealloc_abort): Ditto.
(ccalloc_abort): Ditto.
Diffstat (limited to 'winsup/cygwin/cygtls.cc')
-rw-r--r-- | winsup/cygwin/cygtls.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/cygtls.cc b/winsup/cygwin/cygtls.cc index dbf9a0183..2bc7e85ba 100644 --- a/winsup/cygwin/cygtls.cc +++ b/winsup/cygwin/cygtls.cc @@ -53,8 +53,8 @@ _cygtls::init () else { cygheap->sthreads = THREADLIST_CHUNK; - cygheap->threadlist = (_cygtls **) ccalloc (HEAP_TLS, cygheap->sthreads, - sizeof (cygheap->threadlist[0])); + cygheap->threadlist = (_cygtls **) ccalloc_abort (HEAP_TLS, cygheap->sthreads, + sizeof (cygheap->threadlist[0])); } sentry::lock.init ("sentry_lock"); } @@ -119,8 +119,8 @@ _cygtls::init_thread (void *x, DWORD (*func) (void *, void *)) if (nthreads >= cygheap->sthreads) { cygheap->threadlist = (_cygtls **) - crealloc (cygheap->threadlist, (cygheap->sthreads += THREADLIST_CHUNK) - * sizeof (cygheap->threadlist[0])); + crealloc_abort (cygheap->threadlist, (cygheap->sthreads += THREADLIST_CHUNK) + * sizeof (cygheap->threadlist[0])); memset (cygheap->threadlist + nthreads, 0, THREADLIST_CHUNK * sizeof (cygheap->threadlist[0])); } |