- removed memset (NEW uses calloc)
authortwisti <none@none>
Fri, 3 Dec 2004 16:20:46 +0000 (16:20 +0000)
committertwisti <none@none>
Fri, 3 Dec 2004 16:20:46 +0000 (16:20 +0000)
- replaced mem_alloc with NEW

src/threads/native/threads.c

index 0638a14049b6503ef334330c2ff3dd082727e8a3..bf0f6ca134d782783dae3f95c427e5d47ea31292 100644 (file)
@@ -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;