Re: Why INVARIANTS option and sanity checking?

2005-11-06 Thread nocool
>The design for FreeBSD calls for all memory and other resources provided >to unprivileged processes to be scrubbed before being made available. >Only using privilege should a process be able to gain access to unscrubbed >resources through allocation. For example: > >- When a process allocates

Re: Re: where to release proc.p_stats

2005-10-24 Thread nocool
them. Can this suggestion work? >On Friday 21 October 2005 04:32 pm, David Schultz wrote: >> On Fri, Oct 21, 2005, John Baldwin wrote: >> > On Friday 21 October 2005 09:13 am, nocool wrote: >> > > freebsd-hackers�hello >> > > >> > > Que

where to release proc.p_stats

2005-10-21 Thread nocool
stats is allocated with pstats_alloc(), as p->p_stats = pstats_alloc(); and pstats_alloc is realized as malloc(sizeof(struct pstats), M_SUBPROC, M_ZERO|M_WAITOK); But I can't find where this field is freed. If it will not be release, will there be memory leakage?