[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua allocation profiler?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 10 May 2004 09:56:33 -0300
> Thanks, this seems to work. Mostly. There seems to be a caveat:
> if you call lua_getinfo (even if 'what' is "") from within the
> realloc function, then lua code mysteriously fails with "attempt to
> concatenate a nil value" where no concatenation takes place that I can
> see.
You should not call Lua from within the realloc function. This function
is called from the most internal guts of Lua, so any side-effect from
your calls to Lua may interfere with whatever Lua is doing at the time.
-- Roberto