|
|
|
|
|
by walterstucco
2470 days ago
|
|
Is there a VM that does not crash in case of a catastrophic event? For example: what happens if I run this code? public class Main {
public static void main(String[] args) {
Object[] o = null;
while (true) {
o = new Object[] {o};
}
}
}
What happens if there is a bug in some JNI code that cause a segfault?What Erlang programming style tries to teach is not to avoid crashes by being very defensive and trying to prevent every possible error condition (it's impossible), but to detect them by being fault tolerant and restart the process from a good state. |
|