From: twisti Date: Fri, 3 Dec 2004 16:20:46 +0000 (+0000) Subject: - removed memset (NEW uses calloc) X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=33d50065046cf62098ae8db63a70b3e315d95a48;p=cacao.git - removed memset (NEW uses calloc) - replaced mem_alloc with NEW --- diff --git a/src/threads/native/threads.c b/src/threads/native/threads.c index 0638a1404..bf0f6ca13 100644 --- a/src/threads/native/threads.c +++ b/src/threads/native/threads.c @@ -418,7 +418,6 @@ initThreadsEarly() heap_allocate(1, false, NULL); mainthreadobj = NEW(threadobject); - memset(mainthreadobj, 0, sizeof(threadobject)); mainthreadobj->info.tid = pthread_self(); #if !defined(HAVE___THREAD) pthread_key_create(&tkey_threadinfo, NULL); @@ -432,7 +431,7 @@ initThreadsEarly() /* Every newly created object's monitorPtr points here so we save a check * against NULL */ - dummyLR = mem_alloc(sizeof(monitorLockRecord)); + dummyLR = NEW(monitorLockRecord); dummyLR->o = NULL; dummyLR->ownerThread = NULL; dummyLR->waiting = false;