[ruby-cvs:68494] mame:r61313 (trunk): iseq.c (finish_iseq_build): fix coverage leakage [Bug #14191]

mame at ruby-lang.org mame at ruby-lang.org
Mon Dec 18 11:44:36 JST 2017


mame	2017-12-18 11:44:36 +0900 (Mon, 18 Dec 2017)

  New Revision: 61313

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

  Log:
    iseq.c (finish_iseq_build): fix coverage leakage [Bug #14191]
    
    Before this change, coverage.so had failed to measure some multiple-line
    code fragments.  This is because removing trace instructions (#14104)
    changed TracePoint's lineno (new lineno), and coverage counter array was
    based on old lineno.
    This change initializes coverage counter array based on new lineno.

  Modified files:
    trunk/compile.c
    trunk/iseq.c
    trunk/test/coverage/test_coverage.rb


More information about the ruby-cvs mailing list