| Index: runtime/vm/profiler.cc
|
| diff --git a/runtime/vm/profiler.cc b/runtime/vm/profiler.cc
|
| index 3773df5cf9b8cb9185d3a33f9d46c38a7e151755..6edff105306efce455e4fb4e1c16eb294aff0afc 100644
|
| --- a/runtime/vm/profiler.cc
|
| +++ b/runtime/vm/profiler.cc
|
| @@ -933,6 +933,9 @@ void Profiler::SampleAllocation(Thread* thread, intptr_t cid) {
|
|
|
| void Profiler::SampleThread(Thread* thread,
|
| const InterruptedThreadState& state) {
|
| + ASSERT(thread != NULL);
|
| + Isolate* isolate = thread->isolate();
|
| +
|
| if (StubCode::HasBeenInitialized() &&
|
| StubCode::InJumpToExceptionHandlerStub(state.pc)) {
|
| // The JumpToExceptionHandler stub manually adjusts the stack pointer,
|
| @@ -969,8 +972,6 @@ void Profiler::SampleThread(Thread* thread,
|
| return;
|
| }
|
|
|
| - ASSERT(thread != NULL);
|
| - Isolate* isolate = thread->isolate();
|
| if (!CheckIsolate(isolate)) {
|
| return;
|
| }
|
|
|