Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys



Module Name:    src
Committed By:   thorpej
Date:           Fri Apr 24 03:22:06 UTC 2020

Modified Files:
        src/sys/compat/linux/common: linux_exec.c linux_sched.c
        src/sys/kern: kern_exec.c kern_exit.c kern_fork.c kern_lwp.c
            kern_proc.c sys_lwp.c
        src/sys/sys: lwp.h proc.h

Log Message:
Overhaul the way LWP IDs are allocated.  Instead of each LWP having it's
own LWP ID space, LWP IDs came from the same number space as PIDs.  The
lead LWP of a process gets the PID as its LID.  If a multi-LWP process's
lead LWP exits, the PID persists for the process.

In addition to providing system-wide unique thread IDs, this also lets us
eliminate the per-process LWP radix tree, and some associated locks.

Remove the separate "global thread ID" map added previously; it is no longer
needed to provide this functionality.

Nudged in this direction by ad@ and chs@.


To generate a diff of this commit:
cvs rdiff -u -r1.121 -r1.122 src/sys/compat/linux/common/linux_exec.c
cvs rdiff -u -r1.74 -r1.75 src/sys/compat/linux/common/linux_sched.c
cvs rdiff -u -r1.498 -r1.499 src/sys/kern/kern_exec.c
cvs rdiff -u -r1.288 -r1.289 src/sys/kern/kern_exit.c
cvs rdiff -u -r1.222 -r1.223 src/sys/kern/kern_fork.c
cvs rdiff -u -r1.234 -r1.235 src/sys/kern/kern_lwp.c
cvs rdiff -u -r1.246 -r1.247 src/sys/kern/kern_proc.c
cvs rdiff -u -r1.78 -r1.79 src/sys/kern/sys_lwp.c
cvs rdiff -u -r1.206 -r1.207 src/sys/sys/lwp.h
cvs rdiff -u -r1.362 -r1.363 src/sys/sys/proc.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index