summaryrefslogtreecommitdiff
path: root/Source/Core/Common/MemoryUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/MemoryUtil.cpp')
-rw-r--r--Source/Core/Common/MemoryUtil.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/Core/Common/MemoryUtil.cpp b/Source/Core/Common/MemoryUtil.cpp
index 2cd393d098..f4759c41a0 100644
--- a/Source/Core/Common/MemoryUtil.cpp
+++ b/Source/Core/Common/MemoryUtil.cpp
@@ -97,10 +97,7 @@ void JITPageWriteEnableExecuteDisable()
#if defined(_M_ARM_64) && defined(__APPLE__)
if (JITPageWriteNestCounter() == 0)
{
- if (__builtin_available(macOS 11.0, *))
- {
- pthread_jit_write_protect_np(0);
- }
+ pthread_jit_write_protect_np(0);
}
#endif
JITPageWriteNestCounter()++;
@@ -119,10 +116,7 @@ void JITPageWriteDisableExecuteEnable()
#if defined(_M_ARM_64) && defined(__APPLE__)
if (JITPageWriteNestCounter() == 0)
{
- if (__builtin_available(macOS 11.0, *))
- {
- pthread_jit_write_protect_np(1);
- }
+ pthread_jit_write_protect_np(1);
}
#endif
}