Commit optimization of gc