Skip to content

Always check for thread events after lock acquisition#8404

Merged
headius merged 1 commit intojruby:masterfrom
headius:mutex_lock_check_interrupts
Oct 31, 2024
Merged

Always check for thread events after lock acquisition#8404
headius merged 1 commit intojruby:masterfrom
headius:mutex_lock_check_interrupts

Conversation

@headius
Copy link
Member

@headius headius commented Oct 31, 2024

Upon acquiring a lock, we should always check for interrupts that may have occurred while sleeping or acquiring the lock. This avoids proceeding with a critical section of code while there are interrupts pending.

Fixes #8403

Upon acquiring a lock, we should always check for interrupts that
may have occurred while sleeping or acquiring the lock. This
avoids proceeding with a critical section of code while there are
interrupts pending.

Fixes jruby#8403
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.

Timeout exception may trigger outside of timeout method

1 participant