Skip to content

Fix thread safety of strio_free - #223

Merged
kou merged 1 commit into
ruby:masterfrom
jhawthorn:thread_safe_free
Aug 1, 2026
Merged

Fix thread safety of strio_free#223
kou merged 1 commit into
ruby:masterfrom
jhawthorn:thread_safe_free

Conversation

@jhawthorn

Copy link
Copy Markdown
Member

Follow up to #222

This refcount previously wasn't thread safe (and shouldn't have been declared RUBY_TYPED_THREAD_SAFE_FREE), but it's easy enough to fix using ruby/atomic.h (Ruby 3.0+)

@kou
kou merged commit 2825dc3 into ruby:master Aug 1, 2026
68 checks passed
matzbot pushed a commit to ruby/ruby that referenced this pull request Aug 1, 2026
(ruby/stringio#223)

Follow up to #222

This refcount previously wasn't thread safe (and shouldn't have been
declared `RUBY_TYPED_THREAD_SAFE_FREE`), but it's easy enough to fix
using ruby/atomic.h (Ruby 3.0+)

ruby/stringio@2825dc3007
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.

3 participants