lua-users home
lua-l archive

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


Thanks, interesting ... .

I just checked in my luaconf.h for Lua V5.4.3 (and small controller
system, so Lua 32bit).

Here it is set to 15000 resp. 20000 (depending whether LUAI_IS32INT is
set or not (20000 if it is set)...

... I do not understand this completely I think, but interesting
(LUAI_IS32INT seems to be somehow NOT declared on 16bit controller
systems... fortunately in past history for me, I always use 32bit
CPUSs (or 64bits on PC)...)......

On Thu, Nov 25, 2021 at 10:26 AM Meir Shpilraien <meir@redis.com> wrote:
>
> I meant that the Lua stack size is limited by LUAI_MAXCSTACK to 8k. I want to pop the arguments out of the Lua stack so I will have empty slots to work with.
>
> On Thu, Nov 25, 2021 at 11:18 AM Flyer31 Test <flyer31@googlemail.com> wrote:
>>
>> Why do you have 8k stack limit? (what system do you use? usually in
>> "normal CPU systems" like PC the stack size will be more in Megabyte
>> range?)
>>
>> On Thu, Nov 25, 2021 at 10:05 AM Meir Shpilraien <meir@redis.com> wrote:
>> >
>> > Hey,
>> >
>> > I was wondering whether or not it's OK to pop out from the stack the arguments given to a native C function from Lua code. I am asking because users might send a lot of arguments to the C function (using unpack for example) and acquire all the room on the stack (which is set by default to 8K), leaving no place to push replies or perform other operations that require the stack.
>> >
>> > I am using Lua 5.1.5 (if it makes any difference).
>> >
>> > Thanks.
>> >
>> >
>> > Disclaimer
>> >
>> > The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.
>>
>
>
> Disclaimer
>
> The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.