aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_alloc.c
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2016-03-16 15:35:44 +0100
committerLukas Larsson <[email protected]>2016-03-16 15:35:44 +0100
commitaaecaac6a392eb8bc6362d1a523858846ac8d670 (patch)
tree2d03f043d9327ca36d06e2857feb00aac961daa9 /erts/emulator/beam/erl_alloc.c
parent5e1b5ef47f3f2b898d30e0425823835bd9a574d4 (diff)
downloadotp-aaecaac6a392eb8bc6362d1a523858846ac8d670.tar.gz
otp-aaecaac6a392eb8bc6362d1a523858846ac8d670.tar.bz2
otp-aaecaac6a392eb8bc6362d1a523858846ac8d670.zip
erts: Create erl_crash.dump when out of memory
This was accidentally removed in commit cd6903be0740db
Diffstat (limited to 'erts/emulator/beam/erl_alloc.c')
-rw-r--r--erts/emulator/beam/erl_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_alloc.c b/erts/emulator/beam/erl_alloc.c
index 0877c24404..5f8cd2bbf7 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);
- erts_exit(1,
+ erts_exit(ERTS_DUMP_EXIT,
"%s: Cannot %s %lu bytes of memory (of type \"%s\").\n",
allctr_str, op, size, t_str);
break;