move malloc reset from sweep_start() to gc_start()