Index: runtime/vm/virtual_memory_win.cc |
diff --git a/runtime/vm/virtual_memory_win.cc b/runtime/vm/virtual_memory_win.cc |
index 25846136a996007789204103b8fc3aba808b33ed..8ea8fa52cb12255e9a7749a9fe63e1c590aa427d 100644 |
--- a/runtime/vm/virtual_memory_win.cc |
+++ b/runtime/vm/virtual_memory_win.cc |
@@ -66,6 +66,7 @@ bool VirtualMemory::Commit(uword addr, intptr_t size, bool executable) { |
bool VirtualMemory::Protect(void* address, intptr_t size, Protection mode) { |
ASSERT(Thread::Current()->IsMutatorThread() || |
+ !Isolate::Current()->HasMutatorThread() || |
Isolate::Current()->mutator_thread()->IsAtSafepoint()); |
uword start_address = reinterpret_cast<uword>(address); |
uword end_address = start_address + size; |