>> 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.

Sounds good. If you -- or anyone else -- has suggestions for how to improve the 
documentation here, please follow the normal procedure of posting to the list 
so the community can approve before updating the wiki.

Thanks, and apologies for the confusing behavior.

Adam

--
Adam Leventhal, Fishworks                        http://blogs.sun.com/ahl

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

Reply via email to