Garbage collector issues on spidermonkey… JS_AnchorPtr()?
问题 I've rolled my own javascript server side language called bondi. Just recently upgraded to the new spider monkey. Now that JS enter local roots and leave local roots function is gone/useless from the 1.8.5 api, is it enough to just use anchor pointer( JS_AnchorPtr(varname) ) at the end of your function calls to make sure the compiler isn't removing references to keep the garbage collector happy? I've been testing it by removing all my references to JS_EnterLocalRootScope (see here) / Leave