• Mihies@programming.dev
    cake
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    edit-2
    2 months ago

    I don’t think so. Ref counting is a counter associated with the object which counts references to it and when it becomes null 0, object is destroyed. Hence ref counting. While GC does graph traversal to find which objects can be reached and marks unreachable ones as candidates for destroying.