jdk/src/share/classes/java/util/stream/AbstractTask.java
changeset 18572 53b8b8c30086
parent 17163 6a5e9b4f27d2
child 18795 25d68f4a1b38
equal deleted inserted replaced
18571:8e3cb3c46ae8 18572:53b8b8c30086
   314                 return;
   314                 return;
   315             }
   315             }
   316             else {
   316             else {
   317                 K l = task.leftChild = task.makeChild(split);
   317                 K l = task.leftChild = task.makeChild(split);
   318                 K r = task.rightChild = task.makeChild(task.spliterator);
   318                 K r = task.rightChild = task.makeChild(task.spliterator);
       
   319                 task.spliterator = null;
   319                 task.setPendingCount(1);
   320                 task.setPendingCount(1);
   320                 l.fork();
   321                 l.fork();
   321                 task = r;
   322                 task = r;
   322             }
   323             }
   323         }
   324         }