Start using MAP_JIT for macOS
authormsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Mar 2018 02:34:09 +0000 (02:34 +0000)
committermsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Mar 2018 02:34:09 +0000 (02:34 +0000)
https://bugs.webkit.org/show_bug.cgi?id=183353

Reviewed by Filip Pizlo.

Unify setting this flag for both iOS and macOS.

* wtf/OSAllocatorPosix.cpp:
(WTF::OSAllocator::reserveAndCommit):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@229301 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WTF/ChangeLog
Source/WTF/wtf/OSAllocatorPosix.cpp

index e428bab..ddecb24 100644 (file)
@@ -1,3 +1,15 @@
+2018-03-05  Michael Saboff  <msaboff@apple.com>
+
+        Start using MAP_JIT for macOS
+        https://bugs.webkit.org/show_bug.cgi?id=183353
+
+        Reviewed by Filip Pizlo.
+
+        Unify setting this flag for both iOS and macOS.
+
+        * wtf/OSAllocatorPosix.cpp:
+        (WTF::OSAllocator::reserveAndCommit):
+
 2018-03-05  Yusuke Suzuki  <utatane.tea@gmail.com>
 
         Unreviewed, follow-up after r229209
index f5e6669..a5eb8d4 100644 (file)
@@ -71,7 +71,7 @@ void* OSAllocator::reserveAndCommit(size_t bytes, Usage usage, bool writable, bo
         protection |= PROT_EXEC;
 
     int flags = MAP_PRIVATE | MAP_ANON;
-#if PLATFORM(IOS)
+#if OS(DARWIN)
     if (executable)
         flags |= MAP_JIT;
 #endif