[Mono-dev] [PATCH] altstack for osx
gnorton at novell.com
Wed Jun 23 19:08:52 EDT 2010
On 2010-06-23, at 7:02 PM, Miguel de Icaza wrote:
>> Attached is a patch which enables sigaltstack for OSX (x86 and amd64).
> It seems to alter other operating systems with some of the changes (the
> patch in threads.c)
Correct, this function was incorrect for systems which have:
#if defined(HAVE_PTHREAD_GET_STACKSIZE_NP) && defined(HAVE_PTHREAD_GET_STACKADDR_NP)
which is where the block is localized. mono_thread_get_stack_bounds is asking for the stack bottom, and we were returning the stack top, which is what pthread_get_stackaddr_np does.
>> The configure.in check passes on amd64 and fails on x86 for some reason (the signal isn't delivered to the child ?) but the support appears to work correctly on both.
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
More information about the Mono-devel-list