]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
threads: introduce a limit for total number
authorMateusz Guzik <mjg@FreeBSD.org>
Mon, 9 Nov 2020 23:04:30 +0000 (23:04 +0000)
committerMateusz Guzik <mjg@FreeBSD.org>
Mon, 9 Nov 2020 23:04:30 +0000 (23:04 +0000)
commit1bd3cf5de5f17850da14a6dcc65b5f91e30f843c
tree0d5ad80475d43c11bbc4aab8c72e66bae2270556
parentf6dd1aefb7f69e2b9e1f5e621ac633d17d1427a4
threads: introduce a limit for total number

The intent is to replace the current id allocation method and a known upper
bound will be useful.

Reviewed by: kib (previous version), markj (previous version)
Tested by: pho
Differential Revision: https://reviews.freebsd.org/D27100
sys/kern/kern_thr.c
sys/kern/kern_thread.c