lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> > As far as I understand, the nCcalls still counts correctly the
> > difference of calls/returns in the C stack(s) that is (are) running
> > Lua. But if there are many threads (and stacks), the difference may be
> > large sometimes.
> 
> Not really a problem then.  Thanks for checking!

I am afraid I was wrong (or not exactly right...). In case of errors the
nCcalls count may become wrong. (A pcall saves nCcalls and restores it
to its original valua in case of errors; counts for call/return in other
threads between the pcall and the error will be lost.)

-- Roberto