Index: runtime/vm/isolate_reload.cc |
diff --git a/runtime/vm/isolate_reload.cc b/runtime/vm/isolate_reload.cc |
index 4e8eac4c64e4a7b4e981f6f2f21418404515ca55..414d09381d200b545b70c0a38051459728be7825 100644 |
--- a/runtime/vm/isolate_reload.cc |
+++ b/runtime/vm/isolate_reload.cc |
@@ -772,7 +772,9 @@ void IsolateReloadContext::ReportOnJSON(JSONStream* stream) { |
void IsolateReloadContext::EnsuredUnoptimizedCodeForStack() { |
TIMELINE_SCOPE(EnsuredUnoptimizedCodeForStack); |
- StackFrameIterator it(StackFrameIterator::kDontValidateFrames); |
+ StackFrameIterator it(StackFrameIterator::kDontValidateFrames, |
+ Thread::Current(), |
+ StackFrameIterator::kNoCrossThreadIteration); |
Function& func = Function::Handle(); |
while (it.HasNextFrame()) { |
@@ -1555,7 +1557,8 @@ void IsolateReloadContext::ResetUnoptimizedICsOnStack() { |
Code& code = Code::Handle(zone); |
Function& function = Function::Handle(zone); |
- DartFrameIterator iterator; |
+ DartFrameIterator iterator(thread, |
+ StackFrameIterator::kNoCrossThreadIteration); |
StackFrame* frame = iterator.NextFrame(); |
while (frame != NULL) { |
code = frame->LookupDartCode(); |