git: kernel - Fix an inefficiency in wait*()

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Jan 13 18:48:00 PST 2011


commit ce19c8fecac42ac0b6a72ade87299cb5c265732f
Author: Matthew Dillon <dillon at 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





More information about the Commits mailing list