Bug 1334466 (part 5) - Remove PlatformData::profiled_pthread_. r=mstange.

It's unused.

--HG--
extra : rebase_source : a755202318cf8abceefd1d29326380f3bc2746b7
This commit is contained in:
Nicholas Nethercote 2017-01-28 01:07:01 +11:00
Родитель d1afdf0d74
Коммит dfbacc4a42
2 изменённых файлов: 0 добавлений и 15 удалений

Просмотреть файл

@ -78,7 +78,6 @@ class PlatformData {
public:
PlatformData() : profiled_thread_(mach_thread_self())
{
profiled_pthread_ = pthread_from_mach_thread_np(profiled_thread_);
}
~PlatformData() {
@ -87,17 +86,12 @@ class PlatformData {
}
thread_act_t profiled_thread() { return profiled_thread_; }
pthread_t profiled_pthread() { return profiled_pthread_; }
private:
// Note: for profiled_thread_ Mach primitives are used instead of PThread's
// because the latter doesn't provide thread manipulation primitives required.
// For details, consult "Mac OS X Internals" book, Section 7.3.
thread_act_t profiled_thread_;
// we also store the pthread because Mach threads have no concept of stack
// and we want to be able to get the stack size when we need to unwind the
// stack using frame pointers.
pthread_t profiled_pthread_;
};
/* static */ auto
@ -306,12 +300,6 @@ void Sampler::Stop() {
SamplerThread::RemoveActiveSampler(this);
}
pthread_t
Sampler::GetProfiledThread(PlatformData* aData)
{
return aData->profiled_pthread();
}
/* static */ Thread::tid_t
Thread::GetCurrentId()
{

Просмотреть файл

@ -309,9 +309,6 @@ public:
// xxxehsan sucky hack :(
static uintptr_t GetThreadHandle(PlatformData*);
#endif
#ifdef XP_MACOSX
static pthread_t GetProfiledThread(PlatformData*);
#endif
static const std::vector<ThreadInfo*>& GetRegisteredThreads() {
return *sRegisteredThreads;