Preventing Garbage Collection In The Spidermonkey Javascript Engine
According the Spidermonkey's User Guide https://developer.mozilla.org/En/SpiderMonkey/JSAPI_User_Guide ... a jsval by itself does not protect its referent from the garbage colle
Solution 1:
I think this is a duplicate of Garbage collector issues on spidermonkey… JS_AnchorPtr()? -- the answer there shows how to anchor pointers to keep them live across a GC when using SpiderMonkey as a shared library. If that doesn't answer your question, please edit to clarify.
Post a Comment for "Preventing Garbage Collection In The Spidermonkey Javascript Engine"