| Index: runtime/vm/code_patcher.cc
|
| diff --git a/runtime/vm/code_patcher.cc b/runtime/vm/code_patcher.cc
|
| index c62be00cb979c8cae6404dcaf90acce78d17251d..0c46d74678fef7fb59fa85e3cf7b6af2b2a2bc2a 100644
|
| --- a/runtime/vm/code_patcher.cc
|
| +++ b/runtime/vm/code_patcher.cc
|
| @@ -17,8 +17,7 @@ WritableInstructionsScope::WritableInstructionsScope(uword address,
|
| intptr_t size)
|
| : address_(address), size_(size) {
|
| if (FLAG_write_protect_code) {
|
| - bool status = VirtualMemory::Protect(reinterpret_cast<void*>(address),
|
| - size,
|
| + bool status = VirtualMemory::Protect(reinterpret_cast<void*>(address), size,
|
| VirtualMemory::kReadWrite);
|
| ASSERT(status);
|
| }
|
| @@ -28,8 +27,7 @@ WritableInstructionsScope::WritableInstructionsScope(uword address,
|
| WritableInstructionsScope::~WritableInstructionsScope() {
|
| if (FLAG_write_protect_code) {
|
| bool status = VirtualMemory::Protect(reinterpret_cast<void*>(address_),
|
| - size_,
|
| - VirtualMemory::kReadExecute);
|
| + size_, VirtualMemory::kReadExecute);
|
| ASSERT(status);
|
| }
|
| }
|
|
|