[ruby-cvs:70355] tenderlove:r63265 (trunk): Fix use of `rb_profile_frames` start parameter

tenderlove at ruby-lang.org tenderlove at ruby-lang.org
Fri Apr 27 07:49:00 JST 2018


tenderlove	2018-04-27 07:49:00 +0900 (Fri, 27 Apr 2018)

  New Revision: 63265

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

  Log:
    Fix use of `rb_profile_frames` start parameter
    
    rb_profile_frames was always behaving as if the value given for the
    start parameter was 0.
    
    The reason for this was that it would check if (start > 0) { then
    continue without updating the control frame pointer or anything other
    than decrementing start.
    
    [ruby-core:86147] [Bug #14607]
    
    Co-authored-by: Dylan Thacker-Smith <Dylan.Smith at shopify.com>

  Modified files:
    trunk/test/-ext-/debug/test_profile_frames.rb
    trunk/vm_backtrace.c


More information about the ruby-cvs mailing list