1. fix tmpArraySize reset incorrectly
2. rename gc function name