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

Prevent concurrent access to SJS linker #384

Merged
merged 1 commit into from
Sep 10, 2020

Conversation

keynmol
Copy link
Collaborator

@keynmol keynmol commented Sep 10, 2020

In previous PR #381 I've used a fully synchronous execution context because somehow the linker was accessed concurrently.

What I failed to understand is that execution context was needed in two places - for IR cache and for the linker itself, as linking returns a Future.

Therefore sequential snippets were actually executed concurrently, and the Linker was complaining

Now, I don't know if this will solve an issue I've seen with mdoc deadlocking on some of my mdoc:js projects, but this surely makes usage of EC more generic and shouldn't hurt.

Copy link
Member

@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.

LGTM 👍 Thank you for tracking this down!

@olafurpg olafurpg merged commit dc6e53c into scalameta:master Sep 10, 2020
@keynmol keynmol deleted the fix-concurrent-linker-access branch September 10, 2020 16:47
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