How does queue.poll() avoid a copy?