如题. 我找到以下注释:
- For a collection to be carried out incrementally the following conditions
- must be met:
-
- The collection must be run by calling JS::IncrementalGC() rather than
- JS_GC().
-
- The GC mode must have been set to JSGC_MODE_INCREMENTAL with
- JS_SetGCParameter().
-
- All native objects that have their own trace hook must indicate that they
- implement read and write barriers with the JSCLASS_IMPLEMENTS_BARRIERS
- flag.
IncrementalGC()应该在哪里调用