Closed grandmaster8 closed 7 years ago
OpenComputers uses a slightly modified version of JNLua, with a custom allocator. Depending on your use case, it is more complex than necessary; but this generally applies: to limit memory, use a custom allocator and return null
when trying to allocate but it'd exceed the memory limit.
thanks for the answer! I'll watch the code!
I studied OpenComputers, and I want to know how to limit memory?