Hi Adam,

On 06/11/10 22:44, Adam Leventhal wrote:

If the code above were compiled into a tail call, the
foo:return probe would fire before the bar:entry probe.
The value of arg1 or args[1] will not contain the value
returned to the caller of foo().

Many thanks for the clarification. May I suggest that
the fbt chapter in the DTrace wiki be updated to reflect
this? The section on Tail-call Optimization discusses the
difference in ordering, but I don't think that the effect
on args[1] follows.

Regards,

Robert

_______________________________________________
dtrace-discuss mailing list
dtrace-discuss@opensolaris.org

Reply via email to