[Gc] GC and Coroutines

Basile Starynkevitch basile at starynkevitch.net
Tue Jan 28 13:51:03 PST 2014

On Tue, 2014-01-28 at 18:35 -0300, Juan Wajnerman wrote:
> I made the stack and the coroutine variables (might be the same value, right?) as global but it still crashes.
> Something I noticed is that when I call co_create() without a stack (it allocates its own stack) it works fine if I didn't call GC_malloc() before.
> In other words, it crashes if I call GC_malloc() in the main function.

Show the actual code if possible ... I'm not sure to understand you

Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***

More information about the Gc mailing list