Project

General

Profile

Bug #17302

Updated by sawa (Tsuyoshi Sawada) over 3 years ago

While When setting a second line tracepoint for a line for the second time within a method, method the first one turns will be turned off. 

 I believe this is because due to the `encoded_iseq_trace_instrument` fact that the encoded_iseq_trace_instrument function resets the trace value of an instruction rather than then just turning turn it on if needed: needed - https://github.com/ruby/ruby/blob/799253dc46e96518687dcd4fdca42582251ccffe/iseq.c#L3178 

 And it is unconditionally called, not limited to the correct line: https://github.com/ruby/ruby/blob/799253dc46e96518687dcd4fdca42582251ccffe/iseq.c#L3219

Back