mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm.c (env_mark): mark env->block.self. prevent SEGV when GC occur
in prepare_iseq_build with gcc version 3.4.6 [FreeBSD] 20060305 on FreeBSD/amd64. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7d82d98d56
commit
332529d45a
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
Sat May 10 11:36:20 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* vm.c (env_mark): mark env->block.self. prevent SEGV when GC occur
|
||||
in prepare_iseq_build with gcc version 3.4.6 [FreeBSD] 20060305 on
|
||||
FreeBSD/amd64.
|
||||
|
||||
Fri May 9 19:16:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* thread.c (timeofday): use monotonic clock. based on a patch
|
||||
|
|
1
vm.c
1
vm.c
|
@ -122,6 +122,7 @@ env_mark(void *ptr)
|
|||
|
||||
RUBY_GC_INFO("env->prev_envval\n");
|
||||
RUBY_MARK_UNLESS_NULL(env->prev_envval);
|
||||
RUBY_MARK_UNLESS_NULL(env->block.self);
|
||||
RUBY_MARK_UNLESS_NULL(env->block.proc);
|
||||
|
||||
if (env->block.iseq) {
|
||||
|
|
Loading…
Reference in a new issue