| Index: runtime/vm/virtual_memory_linux.cc
|
| diff --git a/runtime/vm/virtual_memory_linux.cc b/runtime/vm/virtual_memory_linux.cc
|
| index 275c0c68abd44ff8b50100455ebc06907ff6d8e5..fe17a50084d2dd329adc3770b7cec17a0241d050 100644
|
| --- a/runtime/vm/virtual_memory_linux.cc
|
| +++ b/runtime/vm/virtual_memory_linux.cc
|
| @@ -79,6 +79,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());
|
|
|