I am not sure whether there will be someone else calling this function or not (in other files of the same package). If it's sure that no one will call this function, I think we can delete this function and remove all the atomic operation for currSize. What's your opinion?