[前][次][番号順一覧][スレッド一覧]

ruby-changes:11587

From: yugui <ko1@a...>
Date: Sun, 19 Apr 2009 22:34:57 +0900 (JST)
Subject: [ruby-changes:11587] Ruby:r23223 (ruby_1_9_1): merges r23057 from trunk into ruby_1_9_1.

yugui	2009-04-19 22:34:10 +0900 (Sun, 19 Apr 2009)

  New Revision: 23223

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23223

  Log:
    merges r23057 from trunk into ruby_1_9_1.
    --
    * ext/dbm/dbm.c (fdbm_initialize): Make the file variable
      volatile, because FilePathValue() currently does not protect the
      given variable from GC. (Probably it should)
    * ext/sdbm/init.c (fsdbm_initialize): Ditto.

  Modified files:
    branches/ruby_1_9_1/ChangeLog
    branches/ruby_1_9_1/ext/dbm/dbm.c
    branches/ruby_1_9_1/ext/sdbm/init.c

Index: ruby_1_9_1/ChangeLog
===================================================================
--- ruby_1_9_1/ChangeLog	(revision 23222)
+++ ruby_1_9_1/ChangeLog	(revision 23223)
@@ -1,3 +1,11 @@
+Mon Mar 23 21:41:14 2009  Akinori MUSHA  <knu@i...>
+
+	* ext/dbm/dbm.c (fdbm_initialize): Make the file variable
+	  volatile, because FilePathValue() currently does not protect the
+	  given variable from GC. (Probably it should)
+
+	* ext/sdbm/init.c (fsdbm_initialize): Ditto.
+
 Mon Mar 23 06:51:16 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* enc/depend (link_so): replaces $(TARGET) with basename of the
Index: ruby_1_9_1/ext/sdbm/init.c
===================================================================
--- ruby_1_9_1/ext/sdbm/init.c	(revision 23222)
+++ ruby_1_9_1/ext/sdbm/init.c	(revision 23223)
@@ -82,7 +82,8 @@
 static VALUE
 fsdbm_initialize(int argc, VALUE *argv, VALUE obj)
 {
-    VALUE file, vmode;
+    volatile VALUE file;
+    VALUE vmode;
     DBM *dbm;
     struct dbmdata *dbmp;
     int mode;
Index: ruby_1_9_1/ext/dbm/dbm.c
===================================================================
--- ruby_1_9_1/ext/dbm/dbm.c	(revision 23222)
+++ ruby_1_9_1/ext/dbm/dbm.c	(revision 23223)
@@ -91,7 +91,8 @@
 static VALUE
 fdbm_initialize(int argc, VALUE *argv, VALUE obj)
 {
-    VALUE file, vmode, vflags;
+    volatile VALUE file;
+    VALUE vmode, vflags;
     DBM *dbm;
     struct dbmdata *dbmp;
     int mode, flags = 0;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]