SWDEV-425640 - An instantiated graphExec should retain a copy of every reference in the source graph

Change-Id: Idf6b224449ca642af2860b33dc739f51a6248e4c
Tá an tiomantas seo le fáil i:
Sourabh Betigeri údaraithe agus Sourabh Betigeri tiomanta 2024-02-28 12:04:53 -05:00
1 tuismitheoir 15a058cb60
tiomantas 3fdd46ae59
2 comhad athraithe
+4 -6

Níor tháinig aon chomhaid le do chuardach

+4
Féach ar an gComhad
@@ -285,6 +285,10 @@ Graph* Graph::clone(std::unordered_map<Node, Node>& clonedNodes) const {
}
clonedNodes[node]->SetDependencies(clonedDependencies);
}
for (auto userObj : graphUserObj_) {
userObj->retain();
newGraph->graphUserObj_.insert(userObj);
}
return newGraph;
}
-6
Féach ar an gComhad
@@ -463,12 +463,6 @@ struct Graph {
void GetRunList(std::vector<std::vector<Node>>& parallelLists,
std::unordered_map<Node, std::vector<Node>>& dependencies);
bool TopologicalOrder(std::vector<Node>& TopoOrder);
void GetUserObjs(std::unordered_set<UserObject*>& graphExeUserObjs) {
for (auto userObj : graphUserObj_) {
userObj->retain();
graphExeUserObjs.insert(userObj);
}
}
Graph* clone(std::unordered_map<Node, Node>& clonedNodes) const;
Graph* clone() const;