Garbage collector using a mark-compact algorithm.