]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
thread: add more fine-grained tidhash locking
authormjg <mjg@FreeBSD.org>
Wed, 11 Nov 2020 08:51:04 +0000 (08:51 +0000)
committermjg <mjg@FreeBSD.org>
Wed, 11 Nov 2020 08:51:04 +0000 (08:51 +0000)
commit4da935e1c50d68a40986741296e284122d107b61
treebaddf8e2ab6cf050c724f111679eda8dab191f02
parent1792021f9ac2d78cad053357ab7a81ab8224688a
thread: add more fine-grained tidhash locking

Note this still does not scale but is enough to move it out of the way
for the foreseable future.

In particular a trivial benchmark spawning/killing threads stops contesting
on tidhash.
sys/kern/kern_thread.c