summaryrefslogtreecommitdiff
path: root/clrdefinitions.cmake
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2019-09-27 10:47:27 +0200
committerGitHub <noreply@github.com>2019-09-27 10:47:27 +0200
commitd289ccc48f1a4d62cd37be17a35d6c37371b7226 (patch)
tree5db22455d1cddfe159283b4e32f18a8220eb06f6 /clrdefinitions.cmake
parent281a383d913e7b6013068ec430fc21cf81f43350 (diff)
downloadcoreclr-d289ccc48f1a4d62cd37be17a35d6c37371b7226.tar.gz
coreclr-d289ccc48f1a4d62cd37be17a35d6c37371b7226.tar.bz2
coreclr-d289ccc48f1a4d62cd37be17a35d6c37371b7226.zip
Port to Release/3.1 - enabling MHR support (#26803)
* Move JIT_WriteBarrier that is modified at runtime to a dynamically allocated memory instead of making a page in libcoreclr.dylib RWX. * Fix JIT_Stelem_Ref calls to JIT_WriteBarrier * Update PAL to add MEM_JIT flag for allocations and reservations of executable memory. * Update native runtime in EH and stack unwinding areas so that it can unwind from the write barrier copy. That code has no unwind info, so without special handling, runtime would not be able to unwind from it.
Diffstat (limited to 'clrdefinitions.cmake')
-rw-r--r--clrdefinitions.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/clrdefinitions.cmake b/clrdefinitions.cmake
index 22c9c5967f..12dd73632a 100644
--- a/clrdefinitions.cmake
+++ b/clrdefinitions.cmake
@@ -241,3 +241,7 @@ if(WIN32)
add_definitions(-DFEATURE_DATABREAKPOINT)
endif(CLR_CMAKE_TARGET_ARCH_AMD64 OR CLR_CMAKE_TARGET_ARCH_I386)
endif(WIN32)
+
+if(CLR_CMAKE_PLATFORM_DARWIN)
+ add_definitions(-DFEATURE_WRITEBARRIER_COPY)
+endif(CLR_CMAKE_PLATFORM_DARWIN)