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);
/* 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;