This article covers features introduced in SpiderMonkey 1.8
Register externally maintained GC roots.
void JS_SetExtraGCRoots(JSRuntime *rt, JSTraceDataOp traceop, void *data);
| ||The runtime whose trace operation is to be set.|
| ||The trace operation. This is described below.|
| ||Closure pointer, to be passed through to |
typedef void JSTraceDataOp (JSTracer *trc, void *data);
| ||Tracing data, to be passed through to JS_CallTracer.|
| ||Closure pointer. This is the |
Generic trace operation that calls JS_CallTracer on additional traceable things.