]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When calling scheduler entrypoints for creating new threads and processes,
authorJulian Elischer <julian@FreeBSD.org>
Sun, 18 Jul 2004 23:36:13 +0000 (23:36 +0000)
committerJulian Elischer <julian@FreeBSD.org>
Sun, 18 Jul 2004 23:36:13 +0000 (23:36 +0000)
commit55d44f79ea85d72334690f14f4e6c0883a5a6550
tree548243b8828b679ca121764ef843b623c31cf5b9
parentece2d9891e0b9399752810041925f4edcc5a99d7
When calling scheduler entrypoints for creating new threads and processes,
specify "us" as the thread not the process/ksegrp/kse.
You can always find the others from the thread but the converse is not true.
Theorotically this would lead to runtime being allocated to the wrong
entity in some cases though it is not clear how often this actually happenned.
(would only affect threaded processes and would probably be pretty benign,
but it WAS a bug..)

Reviewed by: peter
sys/kern/kern_exit.c
sys/kern/kern_fork.c
sys/kern/kern_kse.c
sys/kern/kern_thr.c
sys/kern/kern_thread.c
sys/kern/sched_4bsd.c
sys/kern/sched_ule.c
sys/sys/sched.h