Refactor incremental_sweep_phase() in gc.c
Merge pull request #2513 from suzukaze/refactor-gc

Refactor incremental_sweep_phase() in gc.c