Updated rusage patch
Julian Elischer
julian at elischer.org
Thu May 31 00:36:47 UTC 2007
Bruce Evans wrote:
> - RELENG_4: statclock() uses splhigh() but not interrupt atomicity.
> exit1() uses no locking and thus races with statclock().
> above: statclock() still uses sched_lock but not interrupt atomicity.
sched_lock blocks interrupts
> exit1() uses no locking and thus races with statclock().
> Time fields are mostly in rux and still fully locked by sched_lock.
> exit1() copies some of them to p_ru, but that copy is not used. I
> think proc locking is still used for p_ru -- it is used in kern_wait(),
> where it seems to be necessary to prevent multiple threads in the
> parent process racing to reap the child.
>
> Bruce
> _______________________________________________
> freebsd-arch at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arch
> To unsubscribe, send any mail to "freebsd-arch-unsubscribe at freebsd.org"
More information about the freebsd-arch
mailing list