diff options
author | Lukas Larsson <[email protected]> | 2014-03-25 17:41:31 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2014-03-28 10:53:47 +0100 |
commit | 49d8e0f92e0b496c9be4c13edecc498b31380cc9 (patch) | |
tree | aea825f619d17f35db6f42021472f6f23ef3dd59 /erts/emulator/beam | |
parent | 8d3959c423b79bc8b55c39e039e7ff6517d87212 (diff) | |
download | otp-49d8e0f92e0b496c9be4c13edecc498b31380cc9.tar.gz otp-49d8e0f92e0b496c9be4c13edecc498b31380cc9.tar.bz2 otp-49d8e0f92e0b496c9be4c13edecc498b31380cc9.zip |
erts: Add etp-lc-dump and etp-ppc-stacktrace macro
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/erl_lock_check.c | 4 | ||||
-rw-r--r-- | erts/emulator/beam/erl_process.c | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_lock_check.c b/erts/emulator/beam/erl_lock_check.c index 7e3a90779d..c13eb87012 100644 --- a/erts/emulator/beam/erl_lock_check.c +++ b/erts/emulator/beam/erl_lock_check.c @@ -270,9 +270,9 @@ union erts_lc_free_block_t_ { static ethr_tsd_key locks_key; -static erts_lc_locked_locks_t *erts_locked_locks; +static erts_lc_locked_locks_t *erts_locked_locks = NULL; -static erts_lc_free_block_t *free_blocks; +static erts_lc_free_block_t *free_blocks = NULL; #ifdef ERTS_LC_STATIC_ALLOC #define ERTS_LC_FB_CHUNK_SIZE 10000 diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c index 8bf0cc9491..baca73f7f6 100644 --- a/erts/emulator/beam/erl_process.c +++ b/erts/emulator/beam/erl_process.c @@ -2672,6 +2672,13 @@ aux_thread(void *unused) ErtsThrPrgrCallbacks callbacks; int thr_prgr_active = 1; +#ifdef ERTS_ENABLE_LOCK_CHECK + { + char buf[] = "aux_thread"; + erts_lc_set_thread_name(buf); + } +#endif + ssi->event = erts_tse_fetch(); callbacks.arg = (void *) ssi; |