[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Is Lua robust in case of memory allocation failure?
- From: Paul Baker <paulbaker8@...>
- Date: Sun, 7 Aug 2016 23:32:38 +1200
I have recently learned that V8, Google's embeddable JavaScript engine
[1], "doesn't (consistently) handle oom situations but expects the
allocator to crash the process if it can't fulfill a request".
How does Lua handle a memory allocation failure? When embedded, does
it also expect/require the hosting process to crash? Or does it
consistently return an error, allowing the hosting process the
possibility of recovery?
[1] https://developers.google.com/v8/