memprof: don't use thread user_id
memprof does not use user_id for anything, so don't pass it to ThreadCreate. Passing a random field of MemprofThread as user_id does not make much sense anyway. Depends on D113920. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D113921
This commit is contained in:
parent
033b94ab52
commit
d1f72f02d0
|
@ -80,8 +80,7 @@ MemprofThread *MemprofThread::Create(thread_callback_t start_routine, void *arg,
|
||||||
thread->start_routine_ = start_routine;
|
thread->start_routine_ = start_routine;
|
||||||
thread->arg_ = arg;
|
thread->arg_ = arg;
|
||||||
MemprofThreadContext::CreateThreadContextArgs args = {thread, stack};
|
MemprofThreadContext::CreateThreadContextArgs args = {thread, stack};
|
||||||
memprofThreadRegistry().CreateThread(*reinterpret_cast<uptr *>(thread),
|
memprofThreadRegistry().CreateThread(0, detached, parent_tid, &args);
|
||||||
detached, parent_tid, &args);
|
|
||||||
|
|
||||||
return thread;
|
return thread;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue