Skip to content

Commit 230bd11

Browse files
committed
drt: avoid calling frNet::setModified in FlexDR_maze.cpp to avoid datarace
Signed-off-by: osamahammad21 <[email protected]>
1 parent 7210384 commit 230bd11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/drt/src/dr/FlexDR_end.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ void FlexDRWorker::endGetModNets(frOrderedIdSet<frNet*>& modNets)
2626
{
2727
for (auto& net : nets_) {
2828
if (net->isModified()) {
29-
modNets.insert(net->getFrNet());
29+
auto fr_net = net->getFrNet();
30+
fr_net->setModified(true);
31+
modNets.insert(fr_net);
3032
}
3133
}
3234
// change modified flag to true if another subnet get routed

0 commit comments

Comments
 (0)