• Mihies@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      16 minutes 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, 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.