aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_db_hash.c
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2015-06-15 16:37:58 +0200
committerRickard Green <[email protected]>2015-06-15 16:37:58 +0200
commita309ead90430ad563d4e036aa8aeee023ddbe075 (patch)
treea796d7f559a9255ef0390615992dd358dc8aa2cc /erts/emulator/beam/erl_db_hash.c
parent0476714af7f673de941225ed0daee1447935f248 (diff)
parentbfd575ddf985408494d4d3d4933eda2c9ee18326 (diff)
downloadotp-a309ead90430ad563d4e036aa8aeee023ddbe075.tar.gz
otp-a309ead90430ad563d4e036aa8aeee023ddbe075.tar.bz2
otp-a309ead90430ad563d4e036aa8aeee023ddbe075.zip
Merge branch 'rickard/+zebwt/OTP-12830'
* rickard/+zebwt/OTP-12830: ETS busy wait option
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 6e50e9c5b4..dce0a3d621 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));