Date: Tue, 10 Nov 2020 01:13:58 +0000 (UTC) From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r367541 - head/sys/kern Message-ID: <202011100113.0AA1Dw93092906@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjg Date: Tue Nov 10 01:13:58 2020 New Revision: 367541 URL: https://svnweb.freebsd.org/changeset/base/367541 Log: thread: adds newer bits for r367537 The committed patch was an older version. Modified: head/sys/kern/kern_thread.c Modified: head/sys/kern/kern_thread.c ============================================================================== --- head/sys/kern/kern_thread.c Mon Nov 9 23:38:39 2020 (r367540) +++ head/sys/kern/kern_thread.c Tue Nov 10 01:13:58 2020 (r367541) @@ -138,8 +138,8 @@ static int thread_unsuspend_one(struct thread *td, str #define TID_BUFFER_SIZE 1024 -struct mtx tid_lock; -bitstr_t *tid_bitmap; +static struct mtx tid_lock; +static bitstr_t *tid_bitmap; static MALLOC_DEFINE(M_TIDHASH, "tidhash", "thread hash"); @@ -195,7 +195,7 @@ tid_alloc(void) KASSERT(tid != -1, ("unexpectedly ran out of IDs")); } bit_set(tid_bitmap, tid); - trytid++; + trytid = tid + 1; mtx_unlock(&tid_lock); return (tid + NO_PID); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202011100113.0AA1Dw93092906>