Skip to content

Preserve reentrant lock state after invalid release - #1112

Open
OskarEichler wants to merge 1 commit into
ruby-concurrency:masterfrom
OskarEichler:codex/reentrant-release-state
Open

Preserve reentrant lock state after invalid release#1112
OskarEichler wants to merge 1 commit into
ruby-concurrency:masterfrom
OskarEichler:codex/reentrant-release-state

Conversation

@OskarEichler

Copy link
Copy Markdown

Checks read/write ownership before decrementing the thread-local hold count. Invalid releases still raise, but no longer wrap the counter and poison later valid lock operations.

Verified by focused reentrant lock specs and models; the review composite passes 2,796 examples with no failures.

@bensheldon bensheldon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can this be tested?

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.

2 participants