3 ms·
> What's the reasonable thing to do when a grow-memory instruction returns -1? 99% of the time, you proceed to try to write into address (-1) and your process
by marcosdumay 9y ago
> What's the reasonable thing to do when a grow-memory instruction returns -1?
99% of the time, you proceed to try to write into address (-1) and your process is killed by the supervisor. Despite what many people say, that's a perfectly reasonable thing to do, if you can afford to have your process killed.
The rest of the time, you'll do something very application dependent, like cleaning caches, optimizing for space instead of time, postponing some task, etc.