need_garbage_collection tweak
need_garbage_collection comments further tweak
Checkpoint progress on garbage collection

This seems to work okay for many inputs. However, there are still edge cases
that break. For now, leave debugging infrastructure in place, and pick it up in
the morning.