[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mono-devel-list
Subject:    Re: [Mono-dev] [PATCH] altstack for osx
From:       Geoff Norton <gnorton () novell ! com>
Date:       2010-06-23 23:08:52
Message-ID: 36F42D60-02EF-4D5D-93F2-9FD05DA0E2E6 () novell ! com
[Download RAW message or body]


On 2010-06-23, at 7:02 PM, Miguel de Icaza wrote:

> Hello,
> 
> > 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.

-g

> 
> > 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. 
> > Comments?
> > 
> > -g
> > _______________________________________________
> > Mono-devel-list mailing list
> > Mono-devel-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
> 
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic