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

Kill and make sure that the presentation compiler is interrupted befo… #1272

Merged
merged 1 commit into from
Nov 4, 2020

Conversation

mlachkar
Copy link
Collaborator

@mlachkar mlachkar commented Nov 3, 2020

…re starting a new thread

fixes #1229

Copy link
Contributor

@olafurpg olafurpg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job tracking this down! Manual thread management is tricky 😞

@bjaglin
Copy link
Collaborator

bjaglin commented Nov 4, 2020

👏 Maybe we can add a test that exercises this code path many times to cause a OutOfMemory in CI if that ever regresses?

@mlachkar
Copy link
Collaborator Author

mlachkar commented Nov 4, 2020

for CI, we fork each test. it's hard to see the OOM.

@mlachkar mlachkar merged commit c13f8de into scalacenter:master Nov 4, 2020
tgodzik added a commit to tgodzik/metals that referenced this pull request Feb 4, 2021
This is based on scalacenter/scalafix#1272

Previous solution did not actually kill the presentation compiler thread.
tgodzik added a commit to tgodzik/metals that referenced this pull request Feb 4, 2021
This is based on scalacenter/scalafix#1272

Previous solution did not actually kill the presentation compiler thread.
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.

Scalafix plugin uses a lot of memory in the sbt project
3 participants