| Index: runtime/vm/virtual_memory_android.cc
|
| diff --git a/runtime/vm/virtual_memory_android.cc b/runtime/vm/virtual_memory_android.cc
|
| index 0e0c1b23380041e6e9bedcccc65dad76089f3ed0..60d665a5a902f65604e672f2581fc067d191345c 100644
|
| --- a/runtime/vm/virtual_memory_android.cc
|
| +++ b/runtime/vm/virtual_memory_android.cc
|
| @@ -80,6 +80,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());
|
|
|