[jsc-dev] JSValueRef lifecycle

Geoffrey Garen ggaren at apple.com
Mon Nov 28 12:25:02 PST 2016


> So I'm asking you guys: what happens with values? Are they just garbage collected? Do they keep a reference of the context or the other way around? Is there a place where I can learn more about JSC besides the code?
> 
Values on the stack are garbage collected. If you store a reference to a value in the heap, you need to call JSValueProtect/JSValueUnprotect.

Geoff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/jsc-dev/attachments/20161128/4b1017a0/attachment.html>


More information about the jsc-dev mailing list