[Mono-list] Mono, Win32 fibers. Almost there...
Paolo Molaro
lupus at ximian.com
Thu Aug 4 10:19:33 EDT 2005
On 08/03/05 Bruce Wilkie wrote:
> One final question in hopes someone has an idea. I've
> gotten fibers to work with both the JIT and Interp
Nice. You can ignore the interp, since we don't maintain it anymore.
> engines. However, I'm having problems with garbage
> collection. That is, objects seem to be getting
> collected when the shouldn't.
>
> Could it be because the stack of the fiber isn't
> registered with the boehm collector? does that sound
> right?
Yes, that's very likely. How do you allocate those stacks?
You're supposed to use GC_MALLOC (stack_size). If you can't
allocate them yourself, you'll have to change the GC code
so that it knows about the stacks and use GC_push_all_stack ().
See the libgc code for examples of when and how to call it.
lupus
--
-----------------------------------------------------------------
lupus at debian.org debian/rules
lupus at ximian.com Monkeys do it better
More information about the Mono-list
mailing list