Created attachment 12062 [details]
When compiling mono 22.214.171.124 on 64-bit Solaris 11/x86, I initially got link failures
and in fact that function is missing. The attached patch provides, inspired by similar code in libgc. It seems
to work fine on Solaris 11, but when I later tried it on 64-bit Solaris 10/x86, I got an assertion failure:
* Assertion at mono-threads.c:844, condition `(current > *staddr) && (current < *staddr + *stsize)' not met
and haven't checked yet what's wrong here.
Created attachment 12063 [details]