[Gc] Problems with exceptions in OSX
hans.boehm at hp.com
Thu Sep 10 00:02:49 PDT 2009
I now have this patch in my tree, but it isn't yet checked in. It seems to not break anything on a MacOS 10.2 machine. More thorough testing would be useful.
> -----Original Message-----
> From: Boehm, Hans
> Sent: Wednesday, September 09, 2009 8:00 PM
> To: 'Ivan Maidanski'; gc at napali.hpl.hp.com
> Subject: RE: Re: [Gc] Problems with exceptions in OSX
> I'll generate a revised patch with the one line page and
> either check it in or post it. I can only test on
> 10.2/PowerPC unfortunately.
> > -----Original Message-----
> > From: gc-bounces at napali.hpl.hp.com
> > [mailto:gc-bounces at napali.hpl.hp.com] On Behalf Of Ivan Maidanski
> > Sent: Wednesday, September 09, 2009 1:39 PM
> > To: gc at napali.hpl.hp.com
> > Subject: Re: [Gc] Problems with exceptions in OSX
> > Hi!
> > "Boehm, Hans" <hans.boehm at hp.com> wrote:
> > > Ivan just reminded me of this patch, also his diff104_cvs.
> > >
> > > I was trying to understand it and the original code, and
> > failed at both. Since I'm not a MacOS programmer, I'm probably
> > missing something basic.
> > >
> > > Could someone explain the role of thread_state here, in
> > either version of the code? As far as I can tell, it gets set to
> > NULL, and is then passed to thread_get_state, which presumably is
> > intended to somehow set it, so that it can then be used by
> > thread_set_state or the like. Since I think this is compiled as C
> > code, and there are thus no reference parameters, it's
> unclear to me
> > how thread_get_state can possibly have any impact on a null pointer
> > value. Can someone enlighten me?
> > >
> > > I realize that this is largely orthogonal to the patch ...
> > >
> > > Thanks.
> > >
> > > Hans
> > I think it's a typo - "thread_state_t" should be, in fact,
> changed to
> > "thread_state_data_t" (which is an array type so always passed by
> > reference in C), and it shouldn't be initialized to null.
> > For more, eg., see (as a reference) the following code:
> > http://adrishost.net/~adri2000/ubuntu/MoM/result/unpacked/b/ba
> > Bye.
> > _______________________________________________
> > Gc mailing list
> > Gc at linux.hpl.hp.com
> > http://www.hpl.hp.com/hosted/linux/mail-archives/gc/
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1958 bytes
Url : http://napali.hpl.hp.com/pipermail/gc/attachments/20090910/fe4caa12/os_dep.c.obj
More information about the Gc