Project

General

Profile

« Previous | Next » 

Revision 3b174fb7

Added by normal over 6 years ago

io.c: IO#pwrite uses tmp buffer to avoid parallel modification

Since we release GVL, we must freeze and duplicate the string buffer
to prevent other threads from modifying our buffer while we are
waiting on pwrite(2).

  • io.c (rb_io_pwrite): use_rb_str_tmp_frozen_{acquire/release}
    [Bug #14195]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e