Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handling of cycles in AST traversal in Dependency Analyzer #1519

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

liucijus
Copy link
Collaborator

Unfortunately I can't quickly figure out how to create a public repro for this one (any help would be appreciated). During the last few years I faced this issue 4 times, where scalac worker got into the infinite loop.

I've added explicit tracking of cycles using mutable.Set[Tree] of visited tree notes, which seems to be fixing the infinite loop problem.

@liucijus liucijus merged commit 421a9e8 into bazelbuild:master Oct 17, 2023
2 checks passed
@liucijus liucijus deleted the fix-ast-cycle-handling branch October 17, 2023 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants