Index: src/sampler.cc |
diff --git a/src/sampler.cc b/src/sampler.cc |
index 0aaa1e9b77eedf846cede81117f3406ae9333481..684ef486c7d24365fae14c8c85a0ab78778c9f65 100644 |
--- a/src/sampler.cc |
+++ b/src/sampler.cc |
@@ -216,11 +216,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; |
} |