Exposing existing GC functionality with GC.criticalHint and GC.collectHint: pause hints for realtime JavaScript
Prior Art V8 implements "idle tasks" which can be accessed through its C++ API. Idle tasks are optional (non-urgent) GC work that will run eventually. Blink uses idle tasks to schedule work between frames, after JavaScript execution is finished. JavaScriptCore uses "synthetic pauses" for its concurrent collector. They do not need to be run immediately and are based on engine heuristics. SpiderMonkey has incremental marking which is done in small arbitrary pauses and incremental sweeping whic...
TC39