aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_process.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2011-12-14 15:57:03 +0100
committerRickard Green <[email protected]>2012-04-16 16:21:41 +0200
commit3e454414a40bba082e5dc0be310f71843200dcf4 (patch)
tree5353748fc6f19043c41f6f5c191e407c6ff69a04 /erts/emulator/beam/erl_process.c
parentcfea5eea406ba3af96588ff458e55de9a149d9c5 (diff)
downloadotp-3e454414a40bba082e5dc0be310f71843200dcf4.tar.gz
otp-3e454414a40bba082e5dc0be310f71843200dcf4.tar.bz2
otp-3e454414a40bba082e5dc0be310f71843200dcf4.zip
Implement possibility to use ordinary mutexes as process locks
Diffstat (limited to 'erts/emulator/beam/erl_process.c')
-rw-r--r--erts/emulator/beam/erl_process.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c
index 95d408f79d..4f8e00f7f1 100644
--- a/erts/emulator/beam/erl_process.c
+++ b/erts/emulator/beam/erl_process.c
@@ -6971,8 +6971,8 @@ Uint erts_process_count(void)
void
erts_free_proc(Process *p)
{
-#if defined(ERTS_ENABLE_LOCK_COUNT) && defined(ERTS_SMP)
- erts_lcnt_proc_lock_destroy(p);
+#ifdef ERTS_SMP
+ erts_proc_lock_fin(p);
#endif
erts_free(ERTS_ALC_T_PROC, (void *) p);
}
@@ -7629,8 +7629,8 @@ erts_cleanup_empty_process(Process* p)
free_message_buffer(p->mbuf);
p->mbuf = NULL;
}
-#if defined(ERTS_ENABLE_LOCK_COUNT) && defined(ERTS_SMP)
- erts_lcnt_proc_lock_destroy(p);
+#ifdef ERTS_SMP
+ erts_proc_lock_fin(p);
#endif
#ifdef DEBUG
erts_debug_verify_clean_empty_process(p);