stops and restarts the garbage collector