diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-05 16:01:53 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-05 16:01:53 +0000 |
commit | 637aad45de70ca38f237c702ae339a37a8f9460d (patch) | |
tree | 608bbe319a63f267e97ddaf9e4dc8bf110aadd93 /io.c | |
parent | f4f70f3fd9f53bc9093b497749722bb40d28b3bb (diff) | |
download | ruby-637aad45de70ca38f237c702ae339a37a8f9460d.tar.gz ruby-637aad45de70ca38f237c702ae339a37a8f9460d.tar.xz ruby-637aad45de70ca38f237c702ae339a37a8f9460d.zip |
* string.c (rb_str_locktmp): check STR_TMPLOCK flag before
locking. [ruby-dev:24727]
* gc.c (gc_mark): stricter GC stack check.
* string.c (str_gsub): should have removed rb_str_unlocktmp(str).
[ruby-dev:24708]
* string.c (str_gsub): string modify check no longer based on
tmplock. [ruby-dev:24706]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -463,10 +463,8 @@ io_write(io, str) f = GetWriteFile(fptr); rb_str_locktmp(str); - rb_str_locktmp(str); n = rb_io_fwrite(RSTRING(str)->ptr, RSTRING(str)->len, f); rb_str_unlocktmp(str); - rb_str_unlocktmp(str); if (n == -1L) rb_sys_fail(fptr->path); if (fptr->mode & FMODE_SYNC) { io_fflush(f, fptr); |