Can you somehow avoid needing full GC? nbind 
<https://github.com/charto/nbind#readme>-based bindings have a (currently 
undocumented) feature that calling a toggleLightGC method causes all 
objects passed by value or shared pointer from C++ to JavaScript always get 
freed on the next tick, unless their persist method is called. That means 
if you have some small JavaScript algorithm generating temporary values, at 
least those will be "garbage collected" automatically. Is your issue simply 
one of convenience, that might be fixed if you only had to explicitly keep 
things rather than explicitly free them?

torstai 21. heinäkuuta 2016 14.43.59 UTC+3 Carlo Kok kirjoitti:
>
> hi,
>
> Does anyone here know a working GC for emscripten? Specifically one that 
> works with and without pthread support? From the chat channel I heard boehm 
> depends on stack scanning which makes it pretty limited in it's abilities.
>
> --
> Carlo KOk
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to