Removing excess logging and improve semaphore debugging

This commit is contained in:
Ali Mashtizadeh 2015-01-22 15:11:12 -08:00
parent ccebc2fe60
commit 359d55f53c
2 changed files with 4 additions and 1 deletions

View File

@ -102,7 +102,11 @@ Debug_Semaphores(int argc, const char *argv[])
kprintf("%-36s Count\n", "Lock Name");
LIST_FOREACH(sema, &semaList, semaphoreList)
{
Thread *thr;
kprintf("%-36s %8d\n", sema->name, sema->count);
TAILQ_FOREACH(thr, &sema->waiters, semaQueue) {
kprintf("waiting: %d:%d\n", thr->proc->pid, thr->tid);
}
}
Spinlock_Unlock(&semaListLock);

View File

@ -206,7 +206,6 @@ Process_Wait(Process *proc, uint64_t pid)
// Release threads
TAILQ_FOREACH_SAFE(thr, &p->zombieQueue, schedQueue, thr_temp) {
Thread_Dump(thr);
Thread_Release(thr);
}