Skip to content

Commit

Permalink
Always clear tempNodeList
Browse files Browse the repository at this point in the history
Signed-off-by: Eddie Hung <eddie.hung@amd.com>
  • Loading branch information
eddieh-xlnx committed Sep 26, 2024
1 parent b4340a4 commit bcd7176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/xilinx/rapidwright/rwroute/RouteNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,10 @@ public RouteNode[] getChildren(RouteNodeGraph routingGraph, List<Node> tempNodeL
}
if (numChildren != 0) {
children = ((List<?>)tempNodeList).subList(0, numChildren).toArray(EMPTY_ARRAY);
tempNodeList.clear();
} else {
children = EMPTY_ARRAY;
}
tempNodeList.clear();
long time = RuntimeTracker.elapsed(start);
routingGraph.addCreateRnodeTime(time);
}
Expand Down

0 comments on commit bcd7176

Please sign in to comment.