Which Modern Browsers Use Mark And Sweep Algorithm For Garbage Collection?
While going through garbage collection, I came across Reference Counting and Mark & Sweep GC Algorithms. Some research on the web says that Reference Counting is a thing of the
Solution 1:
Quoting MDN
As of 2012, all modern browsers ship a mark-and-sweep garbage-collector. All improvements made in the field of JavaScript garbage collection (generational/incremental/concurrent/parallel garbage collection) over the last few years are implementation improvements of this algorithm, but not improvements over the garbage collection algorithm itself nor its reduction of the definition of when "an object is no longer needed".
Post a Comment for "Which Modern Browsers Use Mark And Sweep Algorithm For Garbage Collection?"