[runtime] Use no-op for SufficientExecutionStack on Linux (#5543)
authorAlexander Kyte <alexmkyte@gmail.com>
Tue, 12 Sep 2017 19:46:18 +0000 (15:46 -0400)
committerLudovic Henry <ludovic@xamarin.com>
Tue, 12 Sep 2017 19:46:18 +0000 (15:46 -0400)
commit260ce80d709c35753c526958204929ed1478d581
tree3311bd757da0eb0c66ffdc85760d3e7bc93ff603
parent78e9f064e1a7ef431d9abda18a5229ce5d74e62b
[runtime] Use no-op for SufficientExecutionStack on Linux (#5543)

We had previously responded to bad performance on android by stubbing out
ves_icall_System_Runtime_CompilerServices_RuntimeHelpers_SufficientExecutionStack
on android. This was necessary because the call to pthread_attr_getstack ()
will read /proc/self/maps. When used inside of a hot function, the performance is terrible.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=58911
mono/metadata/icall.c