| Index: src/platform-freebsd.cc
|
| ===================================================================
|
| --- src/platform-freebsd.cc (revision 8618)
|
| +++ src/platform-freebsd.cc (working copy)
|
| @@ -398,17 +398,15 @@
|
| };
|
|
|
|
|
| -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);
|
| }
|
| @@ -426,7 +424,6 @@
|
| // one) so we initialize it here too.
|
| thread->data()->thread_ = pthread_self();
|
| ASSERT(thread->data()->thread_ != kNoThread);
|
| - Thread::SetThreadLocal(Isolate::isolate_key(), thread->isolate());
|
| thread->Run();
|
| return NULL;
|
| }
|
| @@ -660,7 +657,7 @@
|
| };
|
|
|
| explicit SignalSender(int interval)
|
| - : Thread(NULL, "SignalSender"),
|
| + : Thread("SignalSender"),
|
| interval_(interval) {}
|
|
|
| static void AddActiveSampler(Sampler* sampler) {
|
| @@ -687,8 +684,7 @@
|
| ScopedLock lock(mutex_);
|
| SamplerRegistry::RemoveActiveSampler(sampler);
|
| if (SamplerRegistry::GetState() == SamplerRegistry::HAS_NO_SAMPLERS) {
|
| - RuntimeProfiler::WakeUpRuntimeProfilerThreadBeforeShutdown();
|
| - instance_->Join();
|
| + RuntimeProfiler::StopRuntimeProfilerThreadBeforeShutdown(instance_);
|
| delete instance_;
|
| instance_ = NULL;
|
|
|
|
|