]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r240813:
authorkib <kib@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 30 Sep 2012 13:32:48 +0000 (13:32 +0000)
committerkib <kib@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 30 Sep 2012 13:32:48 +0000 (13:32 +0000)
commite6057922e441024b0f2bd935334b0d3a40c4672a
treeeeca1972a3b6c39f58516f6e4be596c835707f3d
parentcfd26f3b8343322cd34d4406f46a3fe9897d3fa5
MFC r240813:
Do not skip two elements of the tid_buffer when reusing the buffer
slot. This eventually results in exhaustion of the tid space, causing
new threads get tid -1 as identifier.

MFC r240951:
Make the updates of the tid ring buffer' head and tail pointers
explicit by moving them into separate statements from the buffer
element accesses.

git-svn-id: svn://svn.freebsd.org/base/stable/9@241071 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/kern_thread.c