From e8cac3776e3521eb8b5ac238a811083f78513ee8 Mon Sep 17 00:00:00 2001 From: Igor Sheludko Date: Fri, 29 Apr 2022 23:50:18 +0200 Subject: [PATCH] [rwx][mac] Enable fast W^X on Apple Silicon (M1) Bug: v8:12797 Change-Id: I53bb803dd77db5bdd42b1a1b4b568e63857adf31 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3598861 Reviewed-by: Toon Verwaest Commit-Queue: Igor Sheludko Cr-Commit-Position: refs/heads/main@{#80396} --- src/common/globals.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/globals.h b/src/common/globals.h index b456f2c3bb..30df646208 100644 --- a/src/common/globals.h +++ b/src/common/globals.h @@ -188,8 +188,7 @@ using CodeT = Code; // #if V8_HAS_PTHREAD_JIT_WRITE_PROTECT && \ !(defined(V8_COMPRESS_POINTERS) && !defined(V8_EXTERNAL_CODE_SPACE)) -// TODO(v8:12797): enable fast W^X permissions switching on Apple Silicon. -#define V8_HEAP_USE_PTHREAD_JIT_WRITE_PROTECT false +#define V8_HEAP_USE_PTHREAD_JIT_WRITE_PROTECT true #else #define V8_HEAP_USE_PTHREAD_JIT_WRITE_PROTECT false #endif