]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
thread: batch tid_free calls in thread_reap
authorMateusz Guzik <mjg@FreeBSD.org>
Wed, 11 Nov 2020 18:45:06 +0000 (18:45 +0000)
committerMateusz Guzik <mjg@FreeBSD.org>
Wed, 11 Nov 2020 18:45:06 +0000 (18:45 +0000)
commit755341df4fe0fbf704d9dc8a3193a8a5de8f887a
tree73695c3c0e0d7da23fa0f356a13b4a1e4e6cbedc
parentc5315f51960d853151756a1f4ffc8858665b2934
thread: batch tid_free calls in thread_reap

This eliminates the highly pessimal pattern of relocking from multiple
CPUs in quick succession. Note this is still globally serialized.
sys/kern/kern_thread.c