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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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).