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:
authorSimon Nattress <nattress@gmail.com>2016-12-17 01:31:55 +0300
committerGitHub <noreply@github.com>2016-12-17 01:31:55 +0300
commitd84f5310c80708584bb908615a331b5520a28d63 (patch)
treeb15c8ea9a3c1dcd2f2778a0b90e1544c8d1a8c5f /src/Test.CoreLib
parent017cba9f796bec095a266b3371a516734f85edbb (diff)
parente05a5b0b19cee2eae090a2b719847c9943bb4de1 (diff)
Merge pull request #2317 from sergiy-k/threadstatics1
Implement basic support for thread static fields
Diffstat (limited to 'src/Test.CoreLib')
-rw-r--r--src/Test.CoreLib/src/System/Runtime/RuntimeImports.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Test.CoreLib/src/System/Runtime/RuntimeImports.cs b/src/Test.CoreLib/src/System/Runtime/RuntimeImports.cs
index e240db0a2..f32429fcc 100644
--- a/src/Test.CoreLib/src/System/Runtime/RuntimeImports.cs
+++ b/src/Test.CoreLib/src/System/Runtime/RuntimeImports.cs
@@ -6,6 +6,7 @@ using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
+using Internal.Runtime;
namespace System.Runtime
{
@@ -44,6 +45,10 @@ namespace System.Runtime
[RuntimeImport(RuntimeLibrary, "RhpRegisterFrozenSegment")]
internal static extern bool RhpRegisterFrozenSegment(IntPtr pSegmentStart, int length);
+ [RuntimeImport(RuntimeLibrary, "RhpGetModuleSection")]
+ [MethodImplAttribute(MethodImplOptions.InternalCall)]
+ internal static extern IntPtr RhGetModuleSection(IntPtr module, ReadyToRunSectionType section, out int length);
+
//
// calls to runtime for allocation
// These calls are needed in types which cannot use "new" to allocate and need to do it manually