diff options
author | Rickard Green <[email protected]> | 2010-09-06 19:42:43 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2010-09-08 22:10:42 +0200 |
commit | 46959cfb07d78bd4cbece99acfda7de938262611 (patch) | |
tree | a4d6bec7c2590f0f6ca5689a76621b53dcd64764 /erts/emulator/beam/erl_node_tables.c | |
parent | e37663d48f048c5948f882a34e3ad761ca4db762 (diff) | |
download | otp-46959cfb07d78bd4cbece99acfda7de938262611.tar.gz otp-46959cfb07d78bd4cbece99acfda7de938262611.tar.bz2 otp-46959cfb07d78bd4cbece99acfda7de938262611.zip |
Re-enable spin wait on ethreads rwlocks
Spin wait on most ethread rwlocks used by the runtime system was
unintentionally disabled during development. Spin wait has now been enabled
again. This bug appeared in commit 59ee2a593090e7d53c97ceba63cbd300d1b9657e,
i.e., it has not been seen in any released versions.
Diffstat (limited to 'erts/emulator/beam/erl_node_tables.c')
-rw-r--r-- | erts/emulator/beam/erl_node_tables.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_node_tables.c b/erts/emulator/beam/erl_node_tables.c index e430b4ad77..d0b08bf72e 100644 --- a/erts/emulator/beam/erl_node_tables.c +++ b/erts/emulator/beam/erl_node_tables.c @@ -80,7 +80,7 @@ dist_table_alloc(void *dep_tmpl) Eterm chnl_nr; Eterm sysname; DistEntry *dep; - erts_smp_rwmtx_opt_t rwmtx_opt = ERTS_SMP_THR_OPTS_DEFAULT_INITER; + erts_smp_rwmtx_opt_t rwmtx_opt = ERTS_SMP_RWMTX_OPT_DEFAULT_INITER; rwmtx_opt.type = ERTS_SMP_RWMTX_TYPE_FREQUENT_READ; if(((DistEntry *) dep_tmpl) == erts_this_dist_entry) @@ -710,7 +710,7 @@ erts_set_this_node(Eterm sysname, Uint creation) void erts_init_node_tables(void) { - erts_smp_rwmtx_opt_t rwmtx_opt = ERTS_SMP_THR_OPTS_DEFAULT_INITER; + erts_smp_rwmtx_opt_t rwmtx_opt = ERTS_SMP_RWMTX_OPT_DEFAULT_INITER; HashFunctions f; rwmtx_opt.type = ERTS_SMP_RWMTX_TYPE_FREQUENT_READ; |