| Index: runtime/vm/virtual_memory_win.cc
|
| diff --git a/runtime/vm/virtual_memory_win.cc b/runtime/vm/virtual_memory_win.cc
|
| index dd154ac1c0fbdcaa0982ac82d5e4248f31a4ac21..7f1a6263bdab7143da2dcb2438b96a97b15467ca 100644
|
| --- a/runtime/vm/virtual_memory_win.cc
|
| +++ b/runtime/vm/virtual_memory_win.cc
|
| @@ -63,6 +63,8 @@ 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()->mutator_thread()->IsAtSafepoint());
|
| uword start_address = reinterpret_cast<uword>(address);
|
| uword end_address = start_address + size;
|
| uword page_address = Utils::RoundDown(start_address, PageSize());
|
|
|