Partial GC implementation.