summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-08 07:46:30 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-08 07:46:30 +0000
commitef2845a5111390b50f797e846b1a379e9a432e82 (patch)
treecbe83b81395499ebebb5f33a3e21a73394d5758e
parent0969bd5eb64d7ee3353e2c3a1f1a9432199328f6 (diff)
downloadruby-ef2845a5111390b50f797e846b1a379e9a432e82.tar.gz
ruby-ef2845a5111390b50f797e846b1a379e9a432e82.tar.xz
ruby-ef2845a5111390b50f797e846b1a379e9a432e82.zip
* file.c (rb_find_file_ext): guard load_path from GC.
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) optimizes load_path by holding only RARRAY_LEN(load_path) and RARRAY_PTR(load_path) in registers on IA64 GNU/Linux Etch. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog7
-rw-r--r--file.c1
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index cac4186fb..a498dd59f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Thu May 8 16:46:06 2008 Tanaka Akira <akr@fsij.org>
+
+ * file.c (rb_find_file_ext): guard load_path from GC.
+ gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) optimizes
+ load_path by holding only RARRAY_LEN(load_path) and
+ RARRAY_PTR(load_path) in registers on IA64 GNU/Linux Etch.
+
Thu May 8 16:41:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (MINIRUBY), common.mk (RUBYOPT): add purelib.rb.
diff --git a/file.c b/file.c
index c614a7e38..21741a63e 100644
--- a/file.c
+++ b/file.c
@@ -4346,6 +4346,7 @@ rb_find_file_ext(VALUE *filep, const char *const *ext)
}
}
}
+ RB_GC_GUARD(load_path);
return 0;
}