| Index: src/platform-freebsd.cc
|
| ===================================================================
|
| --- src/platform-freebsd.cc (revision 5088)
|
| +++ src/platform-freebsd.cc (working copy)
|
| @@ -404,7 +404,9 @@
|
| }
|
|
|
|
|
| -Thread::Thread() : ThreadHandle(ThreadHandle::INVALID) {
|
| +Thread::Thread(Isolate* isolate)
|
| + : ThreadHandle(ThreadHandle::INVALID),
|
| + isolate_(isolate) {
|
| }
|
|
|
|
|
| @@ -419,6 +421,7 @@
|
| // one) so we initialize it here too.
|
| thread->thread_handle_data()->thread_ = pthread_self();
|
| ASSERT(thread->IsValid());
|
| + Thread::SetThreadLocal(Isolate::isolate_key(), thread->isolate());
|
| thread->Run();
|
| return NULL;
|
| }
|
| @@ -611,8 +614,11 @@
|
| };
|
|
|
|
|
| -Sampler::Sampler(int interval, bool profiling)
|
| - : interval_(interval), profiling_(profiling), active_(false) {
|
| +Sampler::Sampler(Isolate* isolate, int interval, bool profiling)
|
| + : isolate_(isolate),
|
| + interval_(interval),
|
| + profiling_(profiling),
|
| + active_(false) {
|
| data_ = new PlatformData();
|
| }
|
|
|
|
|