Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>2016-10-26 04:43:42 +0300
committerJan Kotas <jkotas@microsoft.com>2016-10-26 04:43:42 +0300
commit1d0fca8d89150990e4f1910e8742335307e13436 (patch)
tree83788c6c91b0132a39cb46c220fcdbd95e628320 /src/Native/Runtime/MiscHelpers.cpp
parent92d35f3d45e5f9c7cdde33ebbfc588a8053cc9b4 (diff)
Register frozen string region with the GC (#2071)
Diffstat (limited to 'src/Native/Runtime/MiscHelpers.cpp')
-rw-r--r--src/Native/Runtime/MiscHelpers.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Native/Runtime/MiscHelpers.cpp b/src/Native/Runtime/MiscHelpers.cpp
index c0279fb0a..5a4231287 100644
--- a/src/Native/Runtime/MiscHelpers.cpp
+++ b/src/Native/Runtime/MiscHelpers.cpp
@@ -634,6 +634,11 @@ EXTERN_C REDHAWK_API Int32 __cdecl RhpGetCurrentThreadStackTrace(void* pOutputBu
return RhpCalculateStackTraceWorker(pOutputBuffer, outputBufferLength);
}
+COOP_PINVOKE_HELPER(Boolean, RhpRegisterFrozenSegment, (void* pSegmentStart, UInt32 length))
+{
+ return RedhawkGCInterface::RegisterFrozenSection(pSegmentStart, length) != NULL;
+}
+
#ifdef CORERT
COOP_PINVOKE_HELPER(void*, RhpGetModuleSection, (ModuleManager* pModule, Int32 headerId, Int32* length))
{