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:
Diffstat (limited to 'src/Common/src/TypeSystem/IL/Stubs/PInvokeTargetNativeMethod.cs')
-rw-r--r--src/Common/src/TypeSystem/IL/Stubs/PInvokeTargetNativeMethod.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Common/src/TypeSystem/IL/Stubs/PInvokeTargetNativeMethod.cs b/src/Common/src/TypeSystem/IL/Stubs/PInvokeTargetNativeMethod.cs
index 2a2cae4e8..5aab575a2 100644
--- a/src/Common/src/TypeSystem/IL/Stubs/PInvokeTargetNativeMethod.cs
+++ b/src/Common/src/TypeSystem/IL/Stubs/PInvokeTargetNativeMethod.cs
@@ -72,6 +72,15 @@ namespace Internal.IL.Stubs
}
}
+ public override bool IsNoInlining
+ {
+ get
+ {
+ // This method does not have real IL body. NoInlining stops the JIT asking for it.
+ return true;
+ }
+ }
+
public override PInvokeMetadata GetPInvokeMethodMetadata()
{
return _declMethod.GetPInvokeMethodMetadata();