On Dec 7, 2013, at 12:15 PM, Alexei Sholik <[email protected]> wrote:

> The garbage collector scans the C stack.
> 
> Hm, let me make sure I understand this correctly.
> ...
> I'm asking because I've never previously dealt with a library that scans the 
> host application's stack. So it sounds pretty incredible to me.

Every JSC vm will do a full conservative scan of the in use portion of the 
stack for every thread in your application whenever it needs to GC.  Anything 
that looks like it could be a pointer to a gc value is treated as though it is 
_definitely_ a GC value and marked accordingly.

> 
> Thanks!
>    
> 
> 
> On Sat, Dec 7, 2013 at 9:37 PM, Geoffrey Garen <[email protected]> wrote:
> > At this point, the code is not inside the JS stack, so is it possible for 
> > an object to be collected between the calls to JSObjectMake and 
> > JSObjectCallAsFunction?
> 
> The garbage collector scans the C stack.
> 
> Geoff
> 
> 
> 
> -- 
> Best regards
> Alexei Sholik
> _______________________________________________
> webkit-dev mailing list
> [email protected]
> https://lists.webkit.org/mailman/listinfo/webkit-dev

_______________________________________________
webkit-dev mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to