From: Minero Aoki Date: 2002-09-06T05:13:17+09:00 Subject: [ruby-dev:18196] Re: autoload patch for ruby-1.7 あおきです。 In mail "[ruby-dev:18163] Re: autoload patch for ruby-1.7" Minero Aoki wrote: > > たぶんparse中はrb_gc_mark_maybe(yylval.val)も必要です。 > > うわー、そう言われればその通りです。とりあえずパッチ添付。 確率は少ないですが万が一これで SEGV すると嫌なので とりあえずこのパッチ入れておきました。(↓これ) まずければ外します。 --- gc.c 2 Sep 2002 12:19:30 -0000 1.100 +++ gc.c 3 Sep 2002 06:02:10 -0000 @@ -1184,6 +1184,8 @@ rb_gc() /* mark generic instance variables for special constants */ rb_mark_generic_ivar_tbl(); + + rb_gc_mark_parser(); /* gc_mark objects whose marking are not completed*/ while (!MARK_STACK_EMPTY){ --- parse.y 2 Sep 2002 12:19:30 -0000 1.207 +++ parse.y 3 Sep 2002 05:57:02 -0000 @@ -5352,6 +5352,14 @@ ruby_parser_stack_on_heap() } void +rb_gc_mark_parser() +{ + if (ruby_in_compile) { + rb_gc_mark_maybe(yylval.val); + } +} + +void ------------------------------------------------------------------- 青木峰郎