diff options
author | Jan Kotas <jkotas@microsoft.com> | 2016-09-09 02:45:11 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2016-09-09 02:45:11 +0300 |
commit | 7066ee85c055a55248943d033c46a6c95254efea (patch) | |
tree | b1d2d5a4d2a441ba2266dd02a8ff2939896465f2 /src/Native/Runtime/MiscHelpers.cpp | |
parent | 2a26179271a1d86450c6069a456e6e7f35a44782 (diff) |
Port EnsureSufficientExecutionStack/TryEnsureSufficientExecutionStack
- Port EnsureSufficientExecutionStack to Unix by switching it to the same implementation as what we use for CoreCLR. It is piggy backing on stackbounds that the runtime keeps track of.
- Add TryEnsureSufficientExecutionStack since it was added as public method for CoreCLR (see https://github.com/dotnet/coreclr/pull/7077/)
[tfs-changeset: 1626388]
Diffstat (limited to 'src/Native/Runtime/MiscHelpers.cpp')
-rw-r--r-- | src/Native/Runtime/MiscHelpers.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Native/Runtime/MiscHelpers.cpp b/src/Native/Runtime/MiscHelpers.cpp index d8d7aac55..a4c262a5e 100644 --- a/src/Native/Runtime/MiscHelpers.cpp +++ b/src/Native/Runtime/MiscHelpers.cpp @@ -630,3 +630,8 @@ COOP_PINVOKE_HELPER(void*, RhpCreateModuleManager, (void* pModuleHeader)) return ModuleManager::Create(pModuleHeader); } #endif + +COOP_PINVOKE_HELPER(void, RhGetCurrentThreadStackBounds, (PTR_VOID * ppStackLow, PTR_VOID * ppStackHigh)) +{ + ThreadStore::GetCurrentThread()->GetStackBounds(ppStackLow, ppStackHigh); +} |