1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

don't reduce new thread's refcount if current thread can not set cpuset

for it, since the new thread will reduce it by itself.
This commit is contained in:
David Xu 2008-03-19 09:33:07 +00:00
parent 519e8d87bb
commit c8a4eae56f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177379

View File

@ -218,7 +218,7 @@ _pthread_create(pthread_t * thread, const pthread_attr_t * attr,
if (ret) { if (ret) {
THREAD_LIST_LOCK(curthread); THREAD_LIST_LOCK(curthread);
new_thread->tlflags |= TLFLAGS_DETACHED; new_thread->tlflags |= TLFLAGS_DETACHED;
_thr_ref_delete_unlocked(curthread, new_thread); THR_GCLIST_ADD(new_thread);
THREAD_LIST_UNLOCK(curthread); THREAD_LIST_UNLOCK(curthread);
} }
} }