Re: GC and Coroutines

Basile Starynkevitch <[email protected]>
Newsgroups gmane.comp.programming.garbage-collection.boehmgc
Message-ID <[email protected]>
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
well..

Cheers.
-- 
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} ***
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.