diff options
author | Rickard Green <[email protected]> | 2012-07-31 22:01:03 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2012-07-31 22:01:03 +0200 |
commit | d15c8cec3c9ecbba18fa5ed5cf6e8050c0e1a239 (patch) | |
tree | cf5a76e47b7c935d69488cb05b91d45394066702 /erts/emulator/beam/erl_process_lock.h | |
parent | 020f7cb45b6a3e5ff8af55cc58c7fd0fa0b447c7 (diff) | |
parent | 6e24f2dcb8095aeed157d66204a2e5bace90863b (diff) | |
download | otp-d15c8cec3c9ecbba18fa5ed5cf6e8050c0e1a239.tar.gz otp-d15c8cec3c9ecbba18fa5ed5cf6e8050c0e1a239.tar.bz2 otp-d15c8cec3c9ecbba18fa5ed5cf6e8050c0e1a239.zip |
Merge branch 'rickard/proc-lock-queues/OTP-10163' into maint
* rickard/proc-lock-queues/OTP-10163:
Use static allocation of process lock queues
Diffstat (limited to 'erts/emulator/beam/erl_process_lock.h')
-rw-r--r-- | erts/emulator/beam/erl_process_lock.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_process_lock.h b/erts/emulator/beam/erl_process_lock.h index 413c45480c..290084d8ca 100644 --- a/erts/emulator/beam/erl_process_lock.h +++ b/erts/emulator/beam/erl_process_lock.h @@ -56,15 +56,13 @@ typedef erts_aint32_t ErtsProcLocks; -typedef struct erts_proc_lock_queues_t_ erts_proc_lock_queues_t; - typedef struct erts_proc_lock_t_ { #if ERTS_PROC_LOCK_ATOMIC_IMPL erts_smp_atomic32_t flags; #else ErtsProcLocks flags; #endif - erts_proc_lock_queues_t *queues; + erts_tse_t *queue[ERTS_PROC_LOCK_MAX_BIT+1]; Sint32 refc; #ifdef ERTS_PROC_LOCK_DEBUG erts_smp_atomic32_t locked[ERTS_PROC_LOCK_MAX_BIT+1]; |