summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2024-02-02 12:00:21 -0500
committerPeter Zhu <peter@peterzhu.ca>2024-02-05 11:11:07 -0500
commit5e0c17145131e073814c7e5b15227d0b4e73cabe (patch)
tree9d076dd1c6de347808295e70b75e4d6379e626d5 /test/ruby
parent02c88477ceb8d679a815721d16ce248da845cff6 (diff)
Make io_fwrite safe for compaction
[Bug #20169] Embedded strings are not safe for system calls without the GVL because compaction can cause pages to be locked causing the operation to fail with EFAULT. This commit changes io_fwrite to use rb_str_tmp_frozen_no_embed_acquire, which guarantees that the return string is not embedded.
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions