diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-07-10 16:01:53 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-07-10 16:01:53 +0000 |
commit | deb9868dbd80b2ea7fa01c8d9d1b358645ff87ba (patch) | |
tree | 2022af0dc54c0093f673d7909e5388c31067e983 /libs | |
parent | 98a688583433396afc6e491b9a2e28d2e38e484e (diff) |
libs/core: make use of global memory limits if supported
Diffstat (limited to 'libs')
-rw-r--r-- | libs/core/luasrc/init.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/core/luasrc/init.lua b/libs/core/luasrc/init.lua index dc91a36a0..3297901ac 100644 --- a/libs/core/luasrc/init.lua +++ b/libs/core/luasrc/init.lua @@ -26,6 +26,11 @@ limitations under the License. local require = require +-- Set memory limit if supported +if _G.set_memory_limit then + set_memory_limit(1024 * 1024 * 1.5) +end + -- Make sure that bitlib is loaded if not _G.bit then _G.bit = require "bit" |