ruby-changes:47424
From: usa <ko1@a...>
Date: Wed, 9 Aug 2017 17:56:21 +0900 (JST)
Subject: [ruby-changes:47424] usa:r59540 (ruby_2_3): * compile.c (iseq_compile_each): the lifetime of new_opt have to be
usa 2017-08-09 17:56:15 +0900 (Wed, 09 Aug 2017) New Revision: 59540 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59540 Log: * compile.c (iseq_compile_each): the lifetime of new_opt have to be until this case block is end. this is a part of r57971. [Backport #13766] Modified files: branches/ruby_2_3/ChangeLog branches/ruby_2_3/compile.c branches/ruby_2_3/version.h Index: ruby_2_3/version.h =================================================================== --- ruby_2_3/version.h (revision 59539) +++ ruby_2_3/version.h (revision 59540) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/version.h#L1 #define RUBY_VERSION "2.3.5" #define RUBY_RELEASE_DATE "2017-08-09" -#define RUBY_PATCHLEVEL 350 +#define RUBY_PATCHLEVEL 351 #define RUBY_RELEASE_YEAR 2017 #define RUBY_RELEASE_MONTH 8 Index: ruby_2_3/ChangeLog =================================================================== --- ruby_2_3/ChangeLog (revision 59539) +++ ruby_2_3/ChangeLog (revision 59540) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/ChangeLog#L1 +Wed Aug 9 17:53:09 2017 NAKAMURA Usaku <usa@r...> + + * compile.c (iseq_compile_each): the lifetime of new_opt have to be + until this case block is end. this is a part of r57971. + [Backport #13766] + Wed Aug 9 17:35:47 2017 SHIBATA Hiroshi <hsbt@r...> this patch contains r54158, r57410, r57631 and r57954. Index: ruby_2_3/compile.c =================================================================== --- ruby_2_3/compile.c (revision 59539) +++ ruby_2_3/compile.c (revision 59540) @@ -5993,8 +5993,9 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/compile.c#L5993 } case NODE_PRELUDE:{ const rb_compile_option_t *orig_opt = ISEQ_COMPILE_DATA(iseq)->option; + VALUE orig_cov = ISEQ_COVERAGE(iseq); + rb_compile_option_t new_opt = *orig_opt; if (node->nd_orig) { - rb_compile_option_t new_opt = *orig_opt; rb_iseq_make_compile_option(&new_opt, node->nd_orig); ISEQ_COMPILE_DATA(iseq)->option = &new_opt; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/