summaryrefslogtreecommitdiff
path: root/file.c
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
commitb938618359ba93b7b90633cd28a1a9977db697c1 (patch)
treecbe83b81395499ebebb5f33a3e21a73394d5758e /file.c
parentf3ad9bf9b3009ef1ac13222adc0aba5d7c156876 (diff)
* 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
Diffstat (limited to 'file.c')
-rw-r--r--file.c1
1 files changed, 1 insertions, 0 deletions
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;
}