Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement icall used by RuntimeHelpers.EnsureSufficientExecutionStack…
… on netcore Mono. Current implementation always returned true for Windows/Linux/Android. There are however use of this API in Task library to make sure recursive tasks won't hit stackoverflow. There are several tests in System.Threading.Tasks that currently hit this, at least on Windows, causing test failures. Fix use stack limits already setup in register_thread and used by GC when doing conservative stack scan. If the limits have not been setup or is not supported on platform, we will use old defaults, always assume there is enough stack space available. Heuristics around size of minimum execution stack needed are picked from corresponding CoreCLR implementation.
- Loading branch information