Document in #ifdef notnow code the actions that proc_fini would need to

take if struct procs were actually freed.
This commit is contained in:
John Baldwin 2005-10-24 20:15:23 +00:00
parent cf23efc12a
commit f55ab99409

View File

@ -196,8 +196,17 @@ proc_init(void *mem, int size, int flags)
static void
proc_fini(void *mem, int size)
{
#ifdef notnow
struct proc *p;
p = (struct proc *)mem;
pstats_free(p->p_stats);
ksegrp_free(FIRST_KSEGRP_IN_PROC(p));
thread_free(FIRST_THREAD_IN_PROC(p));
mtx_destroy(&p->p_mtx);
#else
panic("proc reclaimed");
#endif
}
/*