Fix GC issue in switch lacing strategy
Merge pull request #1388 from ke-yu/fix_magn2528

Fix GC issue in switch lacing strategy