Skip to content

Commit 982a902

Browse files
author
Lifeng Lu
committed
Fix a typo in the JTF dependency computation code.
It leads into a performance problem.
1 parent 66ae839 commit 982a902

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.VisualStudio.Threading/JoinableTaskDependencyGraph.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ private static void ComputeSelfAndDescendentOrJoinedJobsAndRemainTasks(IJoinable
760760
{
761761
if (reachableNodes.Add(taskOrCollection))
762762
{
763-
if (remainNodes.Remove(taskOrCollection) && reachableNodes.Count == 0)
763+
if (remainNodes.Remove(taskOrCollection) && remainNodes.Count == 0)
764764
{
765765
// no remain task left, quit the loop earlier
766766
return;

0 commit comments

Comments
 (0)