aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2012-11-16 09:15:48 +0100
committerBjörn-Egil Dahlberg <[email protected]>2012-11-16 09:15:48 +0100
commit49be2dd5ba5d125cac24922c6fd1f6f8557ddbd6 (patch)
tree899bba0b1ecf04d401b154b114c5406cdfbf993d
parentbdc34f0f247628bc285143f250192e4c6016c812 (diff)
downloadotp-49be2dd5ba5d125cac24922c6fd1f6f8557ddbd6.tar.gz
otp-49be2dd5ba5d125cac24922c6fd1f6f8557ddbd6.tar.bz2
otp-49be2dd5ba5d125cac24922c6fd1f6f8557ddbd6.zip
erts: Suppress lock assertion when dumping a crash
-rw-r--r--erts/emulator/beam/erl_lock_check.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_lock_check.h b/erts/emulator/beam/erl_lock_check.h
index b67f36fa06..b1eab315db 100644
--- a/erts/emulator/beam/erl_lock_check.h
+++ b/erts/emulator/beam/erl_lock_check.h
@@ -104,7 +104,7 @@ void erts_lc_unrequire_lock(erts_lc_lock_t *lck);
#define ERTS_LC_ASSERT(A) \
- ((void) ((A) ? 1 : erts_lc_assert_failed(__FILE__, __LINE__, #A)))
+ ((void) (((A) || ERTS_SOMEONE_IS_CRASH_DUMPING) ? 1 : erts_lc_assert_failed(__FILE__, __LINE__, #A)))
#ifdef ERTS_SMP
#define ERTS_SMP_LC_ASSERT(A) ERTS_LC_ASSERT(A)
#else