| Index: src/platform-solaris.cc
|
| diff --git a/src/platform-solaris.cc b/src/platform-solaris.cc
|
| index 0e616d1ab4315131cacdc61f62bc0034353db3f3..90e099a3a4b86847f85a1a9b253fc0bd5c3b3809 100644
|
| --- a/src/platform-solaris.cc
|
| +++ b/src/platform-solaris.cc
|
| @@ -470,7 +470,8 @@ class Thread::PlatformData : public Malloced {
|
|
|
| Thread::Thread(const Options& options)
|
| : data_(new PlatformData()),
|
| - stack_size_(options.stack_size()) {
|
| + stack_size_(options.stack_size()),
|
| + start_semaphore_(NULL) {
|
| set_name(options.name());
|
| }
|
|
|
| @@ -487,7 +488,7 @@ static void* ThreadEntry(void* arg) {
|
| // one) so we initialize it here too.
|
| thread->data()->thread_ = pthread_self();
|
| ASSERT(thread->data()->thread_ != kNoThread);
|
| - thread->Run();
|
| + thread->NotifyStartedAndRun();
|
| return NULL;
|
| }
|
|
|
| @@ -743,7 +744,7 @@ class SignalSender : public Thread {
|
| // Start a thread that will send SIGPROF signal to VM threads,
|
| // when CPU profiling will be enabled.
|
| instance_ = new SignalSender(sampler->interval());
|
| - instance_->Start();
|
| + instance_->StartSynchronously();
|
| } else {
|
| ASSERT(instance_->interval_ == sampler->interval());
|
| }
|
|
|