【发布时间】:2014-11-19 21:12:51
【问题描述】:
我已经下载了 Firefox 32 源代码。我在这里 [1][2] 阅读了有关世代垃圾收集的信息。我还浏览了 js/src/jsgc.h、js/src/jsgc.cpp、js/src/gc/zone.h、js/src/gc/heap.h、js/src/gc/marking 等文件.h 等但我无法找到在哪个文件中实现了分代 GC 算法。在某些地方,我发现 GC 代码是为增量 GC 编写的,而在某些地方,我发现使用 ifdef JSGC_GENERATIONAL 是为分代 GC 编写的。他们在哪个文件中有 Minor 和 Major 集合的代码?即使是快速演练也会有很大帮助。提前致谢。
[1]https://blog.mozilla.org/javascript/2013/07/18/clawing-our-way-back-to-precision/ [2]https://developer.mozilla.org/enUS/docs/Mozilla/Projects/SpiderMonkey/Internals/Garbage_collection
【问题讨论】:
标签: firefox garbage-collection spidermonkey