Add 'if _heavy then' check in 'testes/locals.lua' to prevent OOM

56 views
Skip to first unread message

Jure Bagić

unread,
Nov 13, 2025, 7:46:32 PM (13 days ago) Nov 13
to lua-l
Would be nice to add 'if _heavy then...' in 'locals.lua' when testing for
tbc variables high in the stack, this easily requires 32GB+ virtual memory
when stack size is INT_MAX/2 (for 32 bit int's).
Here 'testes/locals.lua:632', the assert at line 661 fails as 'obj' becomes
a string "out of memory", so 'obj[1]' is nil.
(latest commit 4cf498210e6a60637a7abb06d32460ec21efdbdc).

-- Jure
signature.asc
Reply all
Reply to author
Forward
0 new messages