Skip to content

Allow contended Mutex to be interrupted by Ruby.#5682

Closed
headius wants to merge 1 commit intojruby:masterfrom
headius:interruptible_mutex
Closed

Allow contended Mutex to be interrupted by Ruby.#5682
headius wants to merge 1 commit intojruby:masterfrom
headius:interruptible_mutex

Conversation

@headius
Copy link
Member

@headius headius commented Apr 9, 2019

This PR includes a possible fix for #5476 wherein Ruby interrupts are allowed to wake a lock, but Java thread interrupts are considered spurious.

This should not be merged until we decide which of the various behaviors fits best.

This flips the script a bit, allowing waiting on a contended Mutex
to be interrupted by Ruby thread events but Java interrupts are
considered spurious. This is a third option for supporting
interrupts, after allowing both and allowing neither.

Intended to address jruby#5476.
@headius
Copy link
Member Author

headius commented Apr 10, 2019

Closing in favor of #5683.

@headius headius closed this Apr 10, 2019
@headius headius deleted the interruptible_mutex branch April 10, 2019 21:41
@headius headius added this to the Invalid or Duplicate milestone Apr 10, 2019
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.

1 participant