Refactoring of the GC in preparation for parallel GC