[ruby-cvs:65409] normal:r58238 (trunk): compile.c: avoid duplicate mark entry for string literal Range

normal at ruby-lang.org normal at ruby-lang.org
Mon Apr 3 05:16:02 JST 2017


normal	2017-04-03 05:16:02 +0900 (Mon, 03 Apr 2017)

  New Revision: 58238

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58238

  Log:
    compile.c: avoid duplicate mark entry for string literal Range
    
    iseq_add_mark_object is called in iseq_set_sequence later on,
    so we only need to call iseq_add_mark_object_compile_time
    in iseq_peephole_optimize.  Without this change, there would've
    been a duplicate entry in the long-lived iseq mark_ary.
    
    * compile.c (iseq_peephole_optimize): avoid duplicate mark object entry
      [ruby-core:80536] [Feature #13355]

  Modified files:
    trunk/compile.c


More information about the ruby-cvs mailing list