Index: runtime/vm/thread.cc |
diff --git a/runtime/vm/thread.cc b/runtime/vm/thread.cc |
index 406f0bc9d1ba97b2b917a28d6cfe665d9c5f3788..51159630a9fa8dcde459a66e8cbd14c5c58532ca 100644 |
--- a/runtime/vm/thread.cc |
+++ b/runtime/vm/thread.cc |
@@ -642,6 +642,12 @@ CACHED_VM_OBJECTS_LIST(COMPUTE_OFFSET) |
bool Thread::ObjectAtOffset(intptr_t offset, Object* object) { |
+ if (Isolate::Current() == Dart::vm_isolate()) { |
+ // --disassemble-stubs runs before all the references through |
+ // thread have targets |
+ return false; |
+ } |
+ |
#define COMPUTE_OFFSET(type_name, member_name, expr, default_init_value) \ |
if (Thread::member_name##offset() == offset) { \ |
*object = expr; \ |