for (;;) {
if (checkTerminated(done, q.isEmpty(), a)) {
return;
}
for (;;) {
<BUG>boolean d = done;
T v = q.poll();
boolean empty = v == null;</BUG>
if (checkTerminated(d, empty, a)) {
return;

for (;;) {
if (checkTerminated(done, q.isEmpty(), a)) {
return;
