private void growStack(int depth){
  if (nodes.length == depth) {
    PathNode[] newNodes=new PathNode[ArrayUtil.oversize(nodes.length + 1,RamUsageEstimator.NUM_BYTES_OBJECT_REF)];
    System.arraycopy(nodes,0,newNodes,0,nodes.length);
    for (int i=depth, end=newNodes.length; i < end; i++) {
      newNodes[i]=new PathNode();
    }
    nodes=newNodes;
  }
}

private void growStack ( int depth ) { if ( nodes . length == depth ) { PathNode [ ] newNodes = new PathNode [ ArrayUtil . oversize ( nodes . length + 1 , RamUsageEstimator . NUM_BYTES_OBJECT_REF ) ] ; System . arraycopy ( nodes , 0 , newNodes , 0 , nodes . length ) ; for ( int i = depth , end = newNodes . length ; i < end ; i ++ ) { newNodes [ i ] = new PathNode ( ) ; } nodes = newNodes ; } }
grow path stack , if required .
