About 886,000 results
Open links in new tab
  1. Mark-and-Sweep: Garbage Collection Algorithm - GeeksforGeeks

    May 10, 2022 · Mark and Sweep Algorithm . Any garbage collection algorithm must perform 2 basic operations. One, it should be able to detect all the unreachable objects and secondly, it …

  2. Memory management - JavaScript | MDN - MDN Web Docs

    Mar 6, 2025 · Mark-and-sweep algorithm This algorithm reduces the definition of "an object is no longer needed" to "an object is unreachable". This algorithm assumes the knowledge of a set …

  3. Understanding Mark and Sweep Algorithm in JavaScript

    Feb 22, 2020 · Mark-sweep works by marking roots, such as temporary variables (in the current method) and global (static) variables, and then sweeping the heap removing any unmarked …

  4. Garbage collection - The Modern JavaScript Tutorial

    Oct 14, 2022 · The basic garbage collection algorithm is called “mark-and-sweep”. The following “garbage collection” steps are regularly performed: The garbage collector takes roots and …

  5. Mark and Sweep Algorithm in JavaScript - Online Tutorials Library

    Learn about the Mark and Sweep algorithm in JavaScript, including its working principles and implementation details. Understand the Mark and Sweep algorithm in JavaScript and its …

  6. Garbage Collection in JavaScript - GeeksforGeeks

    Feb 17, 2025 · The Mark-and-Sweep Garbage Collection algorithm helps manage memory by identifying and removing unused objects in JavaScript. This code simulates the process where …

  7. JavaScript Garbage Collection Algorithms? - Medium

    Feb 13, 2025 · Mark-and-Sweep Algorithm. The Mark-and-Sweep algorithm is a fundamental garbage collection technique used to identify and reclaim memory occupied by objects that are …

  8. Mark and Sweep Algorithm in JavaScript - blogs.perficient.com

    Dec 16, 2024 · Learn how JavaScript memory management and the Mark and Sweep algorithm optimize garbage collection, prevent leaks, and boost performance.

  9. A Deep Dive Into Garbage Collection in JavaScript

    Apr 2, 2023 · “Mark and Sweep” Algorithm. Algorithms for garbage collection are mainly divided into two: “Mark and Sweep” algorithm: JavaScript, Go. “Reference Counting” algorithm: …

  10. javascript - DIY Script language garbage collection (mark & sweep ...

    Mar 20, 2014 · Garbage collection (at least mark & sweep implementation), contains two steps: frame[varName].marked = true; if (!objectPool[c].marked) { free(objectPool[c]); …

  11. Some results have been removed
Refresh