Michael Pliskin a écrit :
Hello all,
Coming back to this old subject: I had a chance to talk to Igor
(nginx author) in person (at a conference in Moscow yesterday), and
the only problem he is having integrating Neko is that he wants VM
to fail gracefully in case of out-of-memory - and all VMs are just
crashing or whatever instead (at least what he claims).
So Nicolas, any comments on that?
Mike
All memory allocations of nekovm are centralized in the vm/alloc.c file.
It would be possible to assign some kind of memory limitation to the GC
and when the GC fail to allocate some block, throw a Neko exception. The
only tricky part is that exception itself might require some memory for
handling it.
Also, the notion of out-of-memory is blurry on modern systems since most
of the time OS use swap file in such cases.
Best,
Nicolas
--
Neko : One VM to run them all
(http://nekovm.org)