<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Dec 7, 2013, at 12:15 PM, Alexei Sholik &lt;<a href="mailto:alcosholik@gmail.com">alcosholik@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-family:arial,sans-serif;font-size:12.666666984558105px">The garbage collector scans the C stack.</span></blockquote>

<div><br></div><div>Hm, let me make sure I understand this correctly.</div><div>...</div><div>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.</div></div></blockquote><div><br></div><div>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. &nbsp;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.</div><br><blockquote type="cite"><div dir="ltr">

<div><br></div><div>Thanks!</div><div>&nbsp; &nbsp;</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Dec 7, 2013 at 9:37 PM, Geoffrey Garen <span dir="ltr">&lt;<a href="mailto:ggaren@apple.com" target="_blank">ggaren@apple.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">&gt; 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?<br>


<br>
</div>The garbage collector scans the C stack.<br>
<br>
Geoff<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Best regards<br>Alexei Sholik
</div>
_______________________________________________<br>webkit-dev mailing list<br><a href="mailto:webkit-dev@lists.webkit.org">webkit-dev@lists.webkit.org</a><br>https://lists.webkit.org/mailman/listinfo/webkit-dev<br></blockquote></div><br></body></html>