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:
parent
519e8d87bb
commit
c8a4eae56f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177379
@ -218,7 +218,7 @@ _pthread_create(pthread_t * thread, const pthread_attr_t * attr,
|
||||
if (ret) {
|
||||
THREAD_LIST_LOCK(curthread);
|
||||
new_thread->tlflags |= TLFLAGS_DETACHED;
|
||||
_thr_ref_delete_unlocked(curthread, new_thread);
|
||||
THR_GCLIST_ADD(new_thread);
|
||||
THREAD_LIST_UNLOCK(curthread);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user