Add compacting to garbage collector