[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Unprepared Stack Top Increase
- From: Patrick Donnelly <batrick@...>
- Date: Wed, 15 May 2013 20:46:29 -0400
Hi Dong,
On Wed, May 15, 2013 at 7:44 PM, Dong Feng <middle.fengdong@gmail.com> wrote:
> In GCTM(), there are two invocations to "setobj2s()", and then the
> L->top is increased by 2. I have not found any code to guarantee the
> remaining space of the top is enough before this increase. Is there
> any ground rule for this kind of stack management or I just missed
> anything?
It's been said on the list before that the internals of Lua make some
(safe) assumptions about the stack having a few free slots available
for these types of manipulations.
--
- Patrick Donnelly