DragonFly commits List (threaded) for 2011-01
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
git: kernel - Fix an inefficiency in wait*()
commit ce19c8fecac42ac0b6a72ade87299cb5c265732f
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date: Thu Jan 13 18:44:22 2011 -0800
kernel - Fix an inefficiency in wait*()
* The exit code was not taking into account the fact that a parent
process might race an exiting child, causing a tsleep(... "lwpzomb", hz)
to delay an entire second.
Issue the proper wakeup in all cases where p->p_nthreads drops to 1 or 0.
* Improves buildworld performance a little.
Summary of changes:
sys/kern/kern_exit.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ce19c8fecac42ac0b6a72ade87299cb5c265732f
--
DragonFly BSD source repository
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]