One more thing -- Brian Hackett implemented a static analysis that identifies which functions can GC. See bug 829243. I slapped together a very basic IRC bot that loads in the output of his analysis. The bot is called "mrgiggles" and hangs out on #jsapi. (No, there is no particular meaning to the name. It was the first thing that came to mind.)
Use it by asking "Can XXXX GC?" (or if you don't like the faux natural language interface, "!cangc XXXX".) If XXXX is all alphanumeric, it will be found in any namespace (mrgiggles keeps a mapping from base function names to GC explanations.) If it contains any colon characters, it will do a substring search of all namespaced GC-ing function names. I've noticed one bug so far -- it claims js::Interpret does not GC. But for anything that actually mattered, it's worked fine. (The bug is in the data output from the static analysis, not the mrgiggles bot.) The GC explanations will be more or less a potential call chain from the function you specify to either a GC or something like an indirect call that might GC. It's just parroting back what bhackett's static analysis says, so direct questions to him or put them in bug 829243. _______________________________________________ dev-tech-js-engine-internals mailing list dev-tech-js-engine-internals@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals