diff options
author | Lukas Larsson <[email protected]> | 2016-01-27 15:13:00 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2016-01-27 15:13:00 +0100 |
commit | cd6903be0740db0c0061533cfb46729b43016316 (patch) | |
tree | 8bc9fdf537f5b91dd637b6a159539582fc592d26 /erts/emulator/beam | |
parent | af341c420e145f006ed3d9fc9c745ea217689c04 (diff) | |
download | otp-cd6903be0740db0c0061533cfb46729b43016316.tar.gz otp-cd6903be0740db0c0061533cfb46729b43016316.tar.bz2 otp-cd6903be0740db0c0061533cfb46729b43016316.zip |
erts: When erts_alloc fails, the emulator no longer aborts
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/erl_alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_alloc.c b/erts/emulator/beam/erl_alloc.c index c3f4fe5a63..2a97069ac2 100644 --- a/erts/emulator/beam/erl_alloc.c +++ b/erts/emulator/beam/erl_alloc.c @@ -1923,7 +1923,7 @@ erts_alc_fatal_error(int error, int func, ErtsAlcType_t n, ...) va_start(argp, n); size = va_arg(argp, Uint); va_end(argp); - erl_exit(1, + erl_exit(-1, "%s: Cannot %s %lu bytes of memory (of type \"%s\").\n", allctr_str, op, size, t_str); break; |