aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_db_hash.c
diff options
context:
space:
mode:
authorRickard Green <rickard@erlang.org>2015-05-19 22:48:21 +0200
committerRickard Green <rickard@erlang.org>2015-06-15 16:25:46 +0200
commitbfd575ddf985408494d4d3d4933eda2c9ee18326 (patch)
tree317497adbade085be2ef0f366c097eb26ec3813b /erts/emulator/beam/erl_db_hash.c
parente6fce01ceb4e9ad27aade58f69857a5d9eb0d734 (diff)
downloadotp-bfd575ddf985408494d4d3d4933eda2c9ee18326.tar.gz
otp-bfd575ddf985408494d4d3d4933eda2c9ee18326.tar.bz2
otp-bfd575ddf985408494d4d3d4933eda2c9ee18326.zip
ETS busy wait option
Conflicts: erts/emulator/beam/erl_init.c erts/etc/common/erlexec.c
Diffstat (limited to 'erts/emulator/beam/erl_db_hash.c')
-rw-r--r--erts/emulator/beam/erl_db_hash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_db_hash.c b/erts/emulator/beam/erl_db_hash.c
index 383ee7c430..f6ea57e513 100644
--- a/erts/emulator/beam/erl_db_hash.c
+++ b/erts/emulator/beam/erl_db_hash.c
@@ -670,6 +670,8 @@ int db_create_hash(Process *p, DbTable *tbl)
int i;
if (tb->common.type & DB_FREQ_READ)
rwmtx_opt.type = ERTS_SMP_RWMTX_TYPE_FREQUENT_READ;
+ if (erts_ets_rwmtx_spin_count >= 0)
+ rwmtx_opt.main_spincount = erts_ets_rwmtx_spin_count;
tb->locks = (DbTableHashFineLocks*) erts_db_alloc_fnf(ERTS_ALC_T_DB_SEG, /* Other type maybe? */
(DbTable *) tb,
sizeof(DbTableHashFineLocks));