<Type Name="System.Runtime.CompilerServices.RuntimeHelpers">
<Member Name="GetUninitializedObject(System.Type)" />
<Member Name="EnsureSufficientExecutionStack" />
+ <Member Name="TryEnsureSufficientExecutionStack" />
<Member Name="get_OffsetToStringData" />
<Member Name="GetObjectValue(System.Object)" />
<Member Name="InitializeArray(System.Array,System.RuntimeFieldHandle)" />
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
public static extern void EnsureSufficientExecutionStack();
-#if FEATURE_CORECLR
// This method ensures that there is sufficient stack to execute the average Framework function.
// If there is not enough stack, then it return false.
// Note: this method is not part of the CER support, and is not to be confused with ProbeForSufficientStack
[System.Security.SecuritySafeCritical]
[MethodImplAttribute(MethodImplOptions.InternalCall)]
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
- internal static extern bool TryEnsureSufficientExecutionStack();
-#endif
+ public static extern bool TryEnsureSufficientExecutionStack();
[System.Security.SecurityCritical] // auto-generated_required
[MethodImplAttribute(MethodImplOptions.InternalCall)]
FCFuncElement("GetHashCode", ObjectNative::GetHashCode)
FCFuncElement("Equals", ObjectNative::Equals)
FCFuncElement("EnsureSufficientExecutionStack", ReflectionInvocation::EnsureSufficientExecutionStack)
-#ifdef FEATURE_CORECLR
FCFuncElement("TryEnsureSufficientExecutionStack", ReflectionInvocation::TryEnsureSufficientExecutionStack)
-#endif // FEATURE_CORECLR
FCFuncEnd()
FCFuncStart(gContextSynchronizationFuncs)
}
FCIMPLEND
-#ifdef FEATURE_CORECLR
// As with EnsureSufficientExecutionStack, this method checks and returns whether there is
// sufficient stack to execute the average Framework method, but rather than throwing,
// it simply returns a Boolean: true for sufficient stack space, otherwise false.
FC_RETURN_BOOL(current >= limit);
}
FCIMPLEND
-#endif // FEATURE_CORECLR
struct ECWGCFContext
{
#endif // !FEATURE_CORECLR
static FCDECL1(void, PrepareContractedDelegate, Object* delegateUNSAFE);
static FCDECL0(void, ProbeForSufficientStack);
- static FCDECL0(void, EnsureSufficientExecutionStack);
-#ifdef FEATURE_CORECLR // currently only used from mscorlib in FEATURE_CORECLR
- static FCDECL0(FC_BOOL_RET, TryEnsureSufficientExecutionStack);
-#endif // FEATURE_CORECLR
+ static FCDECL0(void, EnsureSufficientExecutionStack);
+ static FCDECL0(FC_BOOL_RET, TryEnsureSufficientExecutionStack);
static FCDECL3(void, ExecuteCodeWithGuaranteedCleanup, Object* pCodeDelegateUNSAFE, Object* pBackoutDelegateUNSAFE, Object* pUserDataUNSAFE);
// TypedReference functions, should go somewhere else