From owner-cvs-src-old@FreeBSD.ORG Thu Jan 6 22:24:07 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D7B01065674 for ; Thu, 6 Jan 2011 22:24:07 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 6BB1B8FC17 for ; Thu, 6 Jan 2011 22:24:07 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p06MO7L7086794 for ; Thu, 6 Jan 2011 22:24:07 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p06MO7wx086793 for cvs-src-old@freebsd.org; Thu, 6 Jan 2011 22:24:07 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <201101062224.p06MO7wx086793@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Thu, 6 Jan 2011 22:24:00 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_fork.c sched_4bsd.c sched_ule.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jan 2011 22:24:07 -0000 jhb 2011-01-06 22:24:00 UTC FreeBSD src repository Modified files: sys/kern kern_fork.c sched_4bsd.c sched_ule.c Log: SVN rev 217078 on 2011-01-06 22:24:00Z by jhb - Move sched_fork() later in fork() after the various sections of the new thread and proc have been copied and zeroed from the old thread and proc. Otherwise attempts to modify thread or process data in sched_fork() could be undone. - Don't copy td_{base,}_user_pri from the old thread to the new thread in sched_fork_thread() in ULE. This is already done courtesy the bcopy() of the thread copy region. - Always initialize the real priority (td_priority) of new threads to the new thread's base priority (td_base_pri) to avoid bogusly inheriting a borrowed priority from the parent thread. MFC after: 2 weeks Revision Changes Path 1.321 +7 -6 src/sys/kern/kern_fork.c 1.147 +1 -0 src/sys/kern/sched_4bsd.c 1.286 +5 -3 src/sys/kern/sched_ule.c