summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-05 16:01:53 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-05 16:01:53 +0000
commit637aad45de70ca38f237c702ae339a37a8f9460d (patch)
tree608bbe319a63f267e97ddaf9e4dc8bf110aadd93 /io.c
parentf4f70f3fd9f53bc9093b497749722bb40d28b3bb (diff)
downloadruby-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.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/io.c b/io.c
index 37a30fa0d..195392e56 100644
--- a/io.c
+++ b/io.c
@@ -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);