diff options
| author | Peter Zhu <peter@peterzhu.ca> | 2024-02-02 12:00:21 -0500 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2024-02-05 11:11:07 -0500 |
| commit | 5e0c17145131e073814c7e5b15227d0b4e73cabe (patch) | |
| tree | 9d076dd1c6de347808295e70b75e4d6379e626d5 /test/ruby | |
| parent | 02c88477ceb8d679a815721d16ce248da845cff6 (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
