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

Interrupt VirtualThread task only from another Thread #3979

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

chemicL
Copy link
Member

@chemicL chemicL commented Jan 31, 2025

When BoundedElasticScheduler processes a task, the task can be disposed. In the regular case the Thread executing the task will only be interrupted when the disposing Thread is different.

With the Virtual Thread-based implementation this behaviour should be similar. Since it was not, this change aligns the new implementation to be similar in that regard.

Fixes #3948

Verified

This commit was signed with the committer’s verified signature.
chemicL Dariusz Jędrzejczyk
When `BoundedElasticScheduler` processes a task, the task can be disposed.
In the regular case the Thread executing the task will only be
interrupted when the disposing Thread is different.

With the Virtual Thread-based implementation this behaviour should be
similar. Since it was not, this change aligns the new implementation to
be similar in that regard.

Fixes #3948

Signed-off-by: Dariusz Jędrzejczyk <dariusz.jedrzejczyk@broadcom.com>
@chemicL chemicL added the type/bug A general bug label Jan 31, 2025
@chemicL chemicL added this to the 3.6.14 milestone Jan 31, 2025
@chemicL chemicL requested a review from a team as a code owner January 31, 2025 16:27
@chemicL chemicL merged commit dda86e8 into 3.6.x Jan 31, 2025
8 checks passed
chemicL added a commit that referenced this pull request Jan 31, 2025

Verified

This commit was signed with the committer’s verified signature.
chemicL Dariusz Jędrzejczyk
@chemicL chemicL deleted the vt-bounded-elastic-task-disposal-interruption branch January 31, 2025 16:49
@chemicL chemicL changed the title Interrupt VirtualThread task only from other Thread Interrupt VirtualThread task only from another Thread Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant