It only works for stack allocations or when using reference counting, which isn't the ultimate performance of GC algorithms.