Commit 3094d598 authored by Toon Verwaest's avatar Toon Verwaest Committed by Commit Bot

[wx] Keep the execute bit while making code writable

Otherwise SMC perturbs the icache too much it seems.

Change-Id: Iceea779a7e3deee90efe29df568732d6ac5bcffa
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2753768
Commit-Queue: Toon Verwaest <verwaest@chromium.org>
Auto-Submit: Toon Verwaest <verwaest@chromium.org>
Reviewed-by: 's avatarHannes Payer <hpayer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#73355}
parent 90b8ef84
...@@ -408,7 +408,6 @@ class PageAllocator { ...@@ -408,7 +408,6 @@ class PageAllocator {
kNoAccess, kNoAccess,
kRead, kRead,
kReadWrite, kReadWrite,
// TODO(hpayer): Remove this flag. Memory should never be rwx.
kReadWriteExecute, kReadWriteExecute,
kReadExecute, kReadExecute,
// Set this when reserving memory that will later require kReadWriteExecute // Set this when reserving memory that will later require kReadWriteExecute
......
...@@ -91,7 +91,7 @@ void MemoryChunk::SetReadAndWritable() { ...@@ -91,7 +91,7 @@ void MemoryChunk::SetReadAndWritable() {
DCHECK(IsAligned(unprotect_start, page_size)); DCHECK(IsAligned(unprotect_start, page_size));
size_t unprotect_size = RoundUp(area_size(), page_size); size_t unprotect_size = RoundUp(area_size(), page_size);
CHECK(reservation_.SetPermissions(unprotect_start, unprotect_size, CHECK(reservation_.SetPermissions(unprotect_start, unprotect_size,
PageAllocator::kReadWrite)); PageAllocator::kReadWriteExecute));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment