Help in implementing on-the-fly gc