author | Botond Ballo <botond@mozilla.com> |
Tue, 23 Dec 2014 03:21:39 -0500 | |
changeset 222562 | 6d55adbfd24d6f80b4868d4b1b4d8c6c8940994a |
parent 222561 | e186ff7a5b4038b8f96285cc884f2fbd7fe652a9 |
child 222563 | f1ff5ea60279a3f5e7498fe7cb5dffe4d0eda27d |
push id | 28068 |
push user | cbook@mozilla.com |
push date | Thu, 08 Jan 2015 13:16:34 +0000 |
treeherder | mozilla-central@2880e05d5e32 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | glandium |
bugs | 1073003 |
milestone | 37.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/mozglue/build/Nuwa.cpp +++ b/mozglue/build/Nuwa.cpp @@ -325,42 +325,16 @@ GetThreadInfo(pthread_t threadID) { } thread_info_t *tinfo = GetThreadInfoInner(threadID); if (sIsNuwaProcess) { pthread_mutex_unlock(&sThreadCountLock); } return tinfo; } -/** - * Get thread info using the specified native thread ID. - * - * @return thread_info_t with nativeThreadID == specified threadID - */ -static thread_info_t* -GetThreadInfo(pid_t threadID) { - if (sIsNuwaProcess) { - REAL(pthread_mutex_lock)(&sThreadCountLock); - } - thread_info_t *thrinfo = nullptr; - for (thread_info_t *tinfo = sAllThreads.getFirst(); - tinfo; - tinfo = tinfo->getNext()) { - if (tinfo->origNativeThreadID == threadID) { - thrinfo = tinfo; - break; - } - } - if (sIsNuwaProcess) { - pthread_mutex_unlock(&sThreadCountLock); - } - - return thrinfo; -} - #if !defined(HAVE_THREAD_TLS_KEYWORD) /** * Get thread info of the current thread. * * @return thread_info_t for the current thread. */ static thread_info_t * GetCurThreadInfo() {