Laurent Sansonetti
lsans****@apple*****
Sat Jul 7 07:32:42 JST 2007
Hi JP, On Jul 6, 2007, at 5:34 PM, jeanp****@gmail***** wrote: > On 6/26/07, Laurent Sansonetti <lsans****@apple*****> wrote: > Hi, > > On Jun 25, 2007, at 11:32 PM, Naoki Hiroshima wrote: > > >> But Jonathan Paisley made patches to work around this issue, and I > >> will integrate them for 1.0. I still didn't integrate them > because of > >> lack of time. I don't have them handy but If you need them you can > >> search the mail archives (you should hit some results). The patches > >> modify both RubyCocoa and Ruby. > > > > Thanks a lot. I found the post at: > > http://lists.sourceforge.jp/mailman/archives/rubycocoa-devel/2006-August/000373.html > > > > I don't know why google didn't give me the post last night :-/ > > > > So, I wonder if the ruby part of the patch is known to be going to > be > > applied. The Jonathan's nice patch may prevent the crash which is > > great but won't solve the real issue of Thread unless ruby is fixed, > > right? > > Yes, basically the ruby part of the patch inserts hooks between > switching from a Thread to another, and the RubyCocoa part of the > patch saves and restores the NSThread contextual data upon these > hooks. Both patches need to be applied to fix the problem. > > We will try to get the ruby part of the patch adopted upstream (and > also by the version of Ruby Apple bundles in the OS). > > in the interim, it might be nice to advocate to the ruby macports > maintainer (cc'ed on this message) to accept the patch and at least > offer it as a variant on the ruby macport. > > seem reasonable? Reasonable, of course, I would even say awesome! :-) But I suggest to wait at least for the next RubyCocoa release. I would like to heavily test the threading support before releasing it, to make sure it works well. Laurent