summaryrefslogtreecommitdiff
path: root/include/ruby/io/buffer.h
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2025-12-14 09:50:21 +0100
committerBenoit Daloze <eregontp@gmail.com>2025-12-16 21:00:27 +0100
commit094418a6de89a37fc51a17077a5565f125b97f2e (patch)
tree77d163418b5bd5570a6aa95e0dd3778e942a78e3 /include/ruby/io/buffer.h
parenteaa952b536c48658a5a2e3f128e3afdef03a01b6 (diff)
gc.h: Reintroduce immediate guard in `rb_obj_written`
This guard was removed in https://github.com/ruby/ruby/pull/13497 on the justification that some GC may need to be notified even for immediate. But the two currently available GCs don't, and there are plenty of assumtions GCs don't everywhere, notably in YJIT and ZJIT. This optimization is also not so micro (but not huge either). I routinely see 1-2% wasted there on micro-benchmarks. So perhaps if in the future we actually need this, it might make sense to introduce a way for GCs to declare that as an option, but in the meantime it's extra overhead with little gain.
Diffstat (limited to 'include/ruby/io/buffer.h')
0 files changed, 0 insertions, 0 deletions