aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_alloc_util.c
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2013-11-28 14:53:23 +0100
committerLukas Larsson <[email protected]>2013-11-28 14:53:23 +0100
commit172ac461d7055b655a9b5c22c1d95a140624945f (patch)
tree362337ac628865f805d8b27ae7e32b54692ae260 /erts/emulator/beam/erl_alloc_util.c
parent0ce1af08e397ff1af25f6d3359ad5032f67bf7a8 (diff)
parente9c04e92199deb274e1bb74e4caecd296443ca5f (diff)
downloadotp-172ac461d7055b655a9b5c22c1d95a140624945f.tar.gz
otp-172ac461d7055b655a9b5c22c1d95a140624945f.tar.bz2
otp-172ac461d7055b655a9b5c22c1d95a140624945f.zip
Merge branch 'lukas/erts/supercarrier_fix/OTP-11149' into maint
* lukas/erts/supercarrier_fix/OTP-11149: Improve error info when main carrier creation fails Conflicts: erts/emulator/test/alloc_SUITE.erl
Diffstat (limited to 'erts/emulator/beam/erl_alloc_util.c')
-rw-r--r--erts/emulator/beam/erl_alloc_util.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_alloc_util.c b/erts/emulator/beam/erl_alloc_util.c
index 441133a464..3914537d0d 100644
--- a/erts/emulator/beam/erl_alloc_util.c
+++ b/erts/emulator/beam/erl_alloc_util.c
@@ -5610,8 +5610,15 @@ erts_alcu_start(Allctr_t *allctr, AllctrInit_t *init)
| CFLG_FORCE_SYS_ALLOC
#endif
| CFLG_MAIN_CARRIER);
- if (!blk)
- goto error;
+ if (!blk) {
+#ifdef USE_THREADS
+ if (allctr->thread_safe)
+ erts_mtx_destroy(&allctr->mutex);
+#endif
+ erl_exit(ERTS_ABORT_EXIT,
+ "Failed to create main carrier for %salloc\n",
+ init->name_prefix);
+ }
(*allctr->link_free_block)(allctr, blk);