【问题标题】:Understanding Firefox 32 Garbage Collectioni了解 Firefox 32 垃圾收集
【发布时间】: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


    【解决方案1】:

    具体实现细节请关注bug 619558,可以看the bug tree here

    【讨论】:

      猜你喜欢
      • 2015-12-19
      • 2021-03-25
      • 1970-01-01
      • 2013-12-03
      • 1970-01-01
      • 2011-01-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多