[core] gc engine: small code cleaning