Skip to content
  • Takashi Kokubun's avatar
    b77b5c19
    merge revision(s) 5e0c1714: [Backport #20169] · b77b5c19
    Takashi Kokubun authored
    	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.
    b77b5c19
    merge revision(s) 5e0c1714: [Backport #20169]
    Takashi Kokubun authored
    	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.
Loading