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

Isolate all dotnet-interactive statements to use the same jvm thread #736

Merged
merged 6 commits into from
Oct 13, 2020

Conversation

suhsteve
Copy link
Member

Each code submission processed by dotnet-interactive run on an available thread in its thread pool. This means that if two separate code submissions were submitted, each may run on a different thread in the CLR, which in turn be processed on a different thread in the JVM.

This PR prevents this from occurring by forcing the same JVM thread to process all incoming requests from the CLR when running a dotnet-interactive repl session.

@suhsteve suhsteve self-assigned this Oct 12, 2020
@suhsteve suhsteve added the fixing bug Fixing a bug label Oct 12, 2020
@suhsteve suhsteve added this to the 1.0.0 milestone Oct 12, 2020
Copy link
Contributor

@imback82 imback82 left a comment

Choose a reason for hiding this comment

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

Few minor comments, but PR itself looks fine to me.

src/csharp/Microsoft.Spark/Interop/Ipc/JvmBridge.cs Outdated Show resolved Hide resolved
Copy link
Contributor

@imback82 imback82 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @suhsteve!

@imback82 imback82 merged commit 103174a into dotnet:master Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixing bug Fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants