Instances referenced by 'bound_this' only are not garbage collected

后端 未结 3 1342
孤独总比滥情好
孤独总比滥情好 2021-02-05 02:14

I have a question regarding garbage-collection in google chrome (Version 20.0.1132.47, Ubuntu 11.04 64bit).

While comparing heap-dumps and checking for memory-leaks, I d

3条回答
  •  生来不讨喜
    2021-02-05 02:27

    Are you triggering a "forced GC" using the developer tools? If that is the case and the objects then persist then the research above is of value.

    If you are not triggering a GC via the developer tools, then do remember that the way the GC engine works is quite complicated and it has the concept of generational collection (using two generations).

    http://www.html5rocks.com/en/tutorials/memory/effectivemanagement/#toc-v8-gc

    It could simply be that you have not reached the required threshold to trigger a young generation GC, or that the objects have been tenured to the old Generation but that a old generation GC was never triggered.

    Unfortunately the developer tools don't seem to show which generation was GC'd.

提交回复
热议问题