upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/code_hooks_test.cpp
diff options
context:
space:
mode:
authoreipastel <thiagodev.diogo@gmail.com>2026-12-02 13:43:28 -0300
committereipastel <thiagodev.diogo@gmail.com>2026-12-02 13:43:28 -0300
commit2d2ae41b9de7838c46f63341c9e0871976a30220 (patch)
tree96d7cd4d4cb0c4dc98453d92ced684f115dc0dad /runtime/test/code_hooks_test.cpp
parent5b1fff821cfa5a812de6a33b09f5938ba3406b52 (diff)
leonida-lua: each mod gets a Lua state of its own, so its memory limit is its own (D3D12-LUA-MEMORY-LIMIT-IS-STATE-WIDE)
One Lua state held every mod, so the 128 MiB limit was one budget for all of them: a mod holding memory made another's ordinary allocation fail, and collectgarbage("count") reported the other mods' memory too. Each mod now loads into its own state (one shared time guard, since one call runs at a time), with the same 128 MiB limit.
Diffstat (limited to 'runtime/test/code_hooks_test.cpp')
0 files changed, 0 insertions, 0 deletions