Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Jan 2011 22:24:00 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/kern kern_fork.c sched_4bsd.c sched_ule.c
Message-ID:  <201101062224.p06MO7wx086793@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101062224.p06MO7wx086793>