| Index: src/platform-macos.cc
|
| diff --git a/src/platform-macos.cc b/src/platform-macos.cc
|
| index 3e10b6a1124bb0aedb937d8adc5dfe5ac21abf60..cdbbb12d4a62dad918e38aa760ff9ad59e07143a 100644
|
| --- a/src/platform-macos.cc
|
| +++ b/src/platform-macos.cc
|
| @@ -398,17 +398,15 @@ class Thread::PlatformData : public Malloced {
|
| pthread_t thread_; // Thread handle for pthread.
|
| };
|
|
|
| -Thread::Thread(Isolate* isolate, const Options& options)
|
| +Thread::Thread(const Options& options)
|
| : data_(new PlatformData),
|
| - isolate_(isolate),
|
| stack_size_(options.stack_size) {
|
| set_name(options.name);
|
| }
|
|
|
|
|
| -Thread::Thread(Isolate* isolate, const char* name)
|
| +Thread::Thread(const char* name)
|
| : data_(new PlatformData),
|
| - isolate_(isolate),
|
| stack_size_(0) {
|
| set_name(name);
|
| }
|
| @@ -444,7 +442,6 @@ static void* ThreadEntry(void* arg) {
|
| thread->data()->thread_ = pthread_self();
|
| SetThreadName(thread->name());
|
| ASSERT(thread->data()->thread_ != kNoThread);
|
| - Thread::SetThreadLocal(Isolate::isolate_key(), thread->isolate());
|
| thread->Run();
|
| return NULL;
|
| }
|
| @@ -670,7 +667,7 @@ class Sampler::PlatformData : public Malloced {
|
| class SamplerThread : public Thread {
|
| public:
|
| explicit SamplerThread(int interval)
|
| - : Thread(NULL, "SamplerThread"),
|
| + : Thread("SamplerThread"),
|
| interval_(interval) {}
|
|
|
| static void AddActiveSampler(Sampler* sampler) {
|
|
|