mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
f3ad9bf9b3
commit
b938618359
2 changed files with 8 additions and 0 deletions
|
@ -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.
|
||||
|
|
1
file.c
1
file.c
|
@ -4346,6 +4346,7 @@ rb_find_file_ext(VALUE *filep, const char *const *ext)
|
|||
}
|
||||
}
|
||||
}
|
||||
RB_GC_GUARD(load_path);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue