Project

General

Profile

ยซ Previous | Next ยป 

Revision 5e0c1714

Added by peterzhu2118 (Peter Zhu) over 1 year ago

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.