Index: runtime/vm/gc_marker.cc |
diff --git a/runtime/vm/gc_marker.cc b/runtime/vm/gc_marker.cc |
index 67916e362265c4191784aa55d0581930fcd3127b..2e63be3f122678823060f7eda1cf40eaf7d3c8cd 100644 |
--- a/runtime/vm/gc_marker.cc |
+++ b/runtime/vm/gc_marker.cc |
@@ -463,7 +463,7 @@ static bool IsUnreachable(const RawObject* raw_obj) { |
class MarkingWeakVisitor : public HandleVisitor { |
public: |
- MarkingWeakVisitor() : HandleVisitor(Isolate::Current()) { |
+ MarkingWeakVisitor() : HandleVisitor(Thread::Current()) { |
} |
void VisitHandle(uword addr) { |
@@ -471,7 +471,7 @@ class MarkingWeakVisitor : public HandleVisitor { |
reinterpret_cast<FinalizablePersistentHandle*>(addr); |
RawObject* raw_obj = handle->raw(); |
if (IsUnreachable(raw_obj)) { |
- handle->UpdateUnreachable(isolate()); |
+ handle->UpdateUnreachable(thread()->isolate()); |
} |
} |