| Index: src/sampler.cc
|
| diff --git a/src/sampler.cc b/src/sampler.cc
|
| index ef525f96faf870a14422cadab343eb7ccbc03d00..09b5f48ea245a3df1b0e7ae05b94ad71a4489259 100644
|
| --- a/src/sampler.cc
|
| +++ b/src/sampler.cc
|
| @@ -229,11 +229,7 @@ class Sampler::PlatformData : public PlatformDataCommon {
|
| class SimulatorHelper {
|
| public:
|
| inline bool Init(Sampler* sampler, Isolate* isolate) {
|
| - ThreadId thread_id = sampler->platform_data()->profiled_thread_id();
|
| - Isolate::PerIsolateThreadData* per_thread_data = isolate->
|
| - FindPerThreadDataForThread(thread_id);
|
| - if (!per_thread_data) return false;
|
| - simulator_ = per_thread_data->simulator();
|
| + simulator_ = isolate->thread_local_top()->simulator_;
|
| // Check if there is active simulator.
|
| return simulator_ != NULL;
|
| }
|
|
|