[ruby-cvs:65137] mame:r57971 (trunk): Fix a consistency bug of ISEQ_COVERAGE [Bug #13305]

mame at ruby-lang.org mame at ruby-lang.org
Tue Mar 14 20:39:58 JST 2017


mame	2017-03-14 20:39:58 +0900 (Tue, 14 Mar 2017)

  New Revision: 57971

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

  Log:
    Fix a consistency bug of ISEQ_COVERAGE [Bug #13305]
    
    There is an invariant that ISEQ_COVERAGE(iseq) must be Qnil if and only
    if option->coverage_enabled is false.  This invariant was broken by
    NODE_PRELUDE which updates option->coverage_enabled but not
    ISEQ_COVERAGE(iseq).

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


More information about the ruby-cvs mailing list