[Win32utils-devel] win32-thread experiment

win32utils-devel at rubyforge.org win32utils-devel at rubyforge.org
Mon Jan 3 09:17:04 EST 2005


> Hi Dan,

Hi, I'm back from vacation. :)

> On Fri, 17 Dec 2004 00:22:19 +0900, Daniel Berger  wrote:
> > I've tried tinkering with rb_gc_disable() and rb_gc_start() 
> in various 
> > places in the code but I haven't had any luck.  I'm still getting 
> > segfaults.

<snip>

> On the threading, what if you call rb_gc_disable(), then 
> create some win32 threads and see if you still get segfaults? 
>  (Don't ever call rb_gc_start).

I played around with this without luck.  Did you have any?
 
> Of course, if the threads are doing much with Ruby objects 
> they'll be creating garbage, so at some point the process 
> will run out of memory due to the lack of GC.  This is just 
> an experiment to see if threads can run happily if GC is off. 
>  If so, we can try to figure out where to go from here.
> 
> Wayne

If you have any suggestions, I'm all ears.  Also note that I've got a
highly experimental version of win32-fiber checked into CVS. :)

Regards,

Dan



More information about the win32utils-devel mailing list