This API is not thread safe, so I don't think these need to be volatile.