[ruby-cvs:71596] mame:r64504 (trunk): thread.c (rb_reset_coverages): remove coverage counters from all ISeqs

mame at ruby-lang.org mame at ruby-lang.org
Wed Aug 22 14:24:50 JST 2018

mame	2018-08-22 14:24:50 +0900 (Wed, 22 Aug 2018)

  New Revision: 64504


    thread.c (rb_reset_coverages): remove coverage counters from all ISeqs
    When coverage measurement is enabled, the compiler makes each iseq have
    a reference to the counter array of coverage.
    Even after coverage measurement is disabled, the reference is kept.
    And, if coverage measurement is restarted, a coverage hook will increase
    the counter.  This is completely meaningless; it brings just overhead.
    To remove this meaninglessness, this change removes all the reference
    when coverage measuement is stopped.

  Modified files:

More information about the ruby-cvs mailing list