From b938618359ba93b7b90633cd28a1a9977db697c1 Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 8 May 2008 07:46:30 +0000 Subject: [PATCH] * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@16332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 7 +++++++ file.c | 1 + 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index cac4186fb3..a498dd59f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Thu May 8 16:46:06 2008 Tanaka Akira + + * 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 * configure.in (MINIRUBY), common.mk (RUBYOPT): add purelib.rb. diff --git a/file.c b/file.c index c614a7e380..21741a63e9 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; }