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

ruby-changes:7591

From: akr <ko1@a...>
Date: Thu, 4 Sep 2008 09:06:56 +0900 (JST)
Subject: [ruby-changes:7591] Ruby:r19112 (trunk): * file.c (rb_find_file): fix GC problem on Debian GNU/Linux (IA64)

akr	2008-09-04 09:05:30 +0900 (Thu, 04 Sep 2008)

  New Revision: 19112

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

  Log:
    * file.c (rb_find_file): fix GC problem on Debian GNU/Linux (IA64)
      with gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21).
      There is no register/memory to contain load_path.  A register (r35)
      contains &RARRAY_PTR(load_path), (char*)load_path + 32.

  Modified files:
    trunk/ChangeLog
    trunk/file.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 19111)
+++ ChangeLog	(revision 19112)
@@ -1,3 +1,10 @@
+Thu Sep  4 08:59:29 2008  Tanaka Akira  <akr@f...>
+
+	* file.c (rb_find_file): fix GC problem on Debian GNU/Linux (IA64)
+	  with gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21).
+	  There is no register/memory to contain load_path.  A register (r35)
+	  contains &RARRAY_PTR(load_path), (char*)load_path + 32.
+
 Thu Sep  4 03:10:05 2008  Tanaka Akira  <akr@f...>
 
 	* include/ruby/io.h (rb_io_t): new fields: encs.ecopts and
Index: file.c
===================================================================
--- file.c	(revision 19111)
+++ file.c	(revision 19112)
@@ -4595,7 +4595,7 @@
 	rb_raise(rb_eSecurityError, "loading from non-absolute path %s", f);
     }
 
-    load_path = rb_get_load_path();
+    RB_GC_GUARD(load_path) = rb_get_load_path();
     if (load_path) {
 	long i;
 

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

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