Index: runtime/vm/virtual_memory_android.cc |
diff --git a/runtime/vm/virtual_memory_android.cc b/runtime/vm/virtual_memory_android.cc |
index 16aa8348d264d60acadd6577b117ed48c89cfad7..f84e2efa2609102f903c4c72d05df869170bf09e 100644 |
--- a/runtime/vm/virtual_memory_android.cc |
+++ b/runtime/vm/virtual_memory_android.cc |
@@ -83,6 +83,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; |