Skip to content

Release TVar locks for all exceptions - #1116

Open
OskarEichler wants to merge 1 commit into
ruby-concurrency:masterfrom
OskarEichler:codex/tvar-exception-cleanup
Open

Release TVar locks for all exceptions#1116
OskarEichler wants to merge 1 commit into
ruby-concurrency:masterfrom
OskarEichler:codex/tvar-exception-cleanup

Conversation

@OskarEichler

Copy link
Copy Markdown

Aborts the transaction before re-raising exceptions outside StandardError as well, preventing TVar locks from remaining held after Interrupt, SystemExit, or other Exception subclasses.

Verified by focused TVar 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.

This looks ok.

It should be raise not raise e on the next line, right?

Are there other instances of this pattern we should update? Not necessarily jammed into this PR, but while it's top of mind, the help would be appreciated.

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