News for hackers. Stuff that matters.
Re:Generational Garbage Collection in Firefox by pdknsk on Thursday September 25, 2014 @03:32PM (#8369222)
Googlers at I/O explain how this works in V8. Click on "View the presentation" and then from slide 23 onwards.

https://developers.google.com/events/io/sessions/325547004

Re:Generational Garbage Collection in Firefox by sphink on Thursday September 25, 2014 @06:14PM (#8370076)
The main difference from what is shown in those slides is that V8 uses a semispace collector. The SpiderMonkey collector just has a single nursery.

Jon Coppeard implemented a semispace collector for SpiderMonkey, but the added complexity made it a net loss in performance. So we scrapped it for now. It means we get a few objects unfairly tenured, but our measurements showed the actual number was pretty low and not worth the overhead.

It's totally workload dependent, and further GGC tuning (there's a lot to go!) may reverse that balance.