Skip to content

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

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

1 participant