aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys/common
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-04-12 17:34:46 +0200
committerLukas Larsson <[email protected]>2017-09-15 10:04:42 +0200
commit6c1bb4bcfce103b3ef95e43fa5376b7d611ccc79 (patch)
tree38e7145e89b5448306ee33cff86074244aabf3d2 /erts/emulator/sys/common
parent68cbafa26fa3cc36eb2ed3dd26c0dda41f6fec44 (diff)
downloadotp-6c1bb4bcfce103b3ef95e43fa5376b7d611ccc79.tar.gz
otp-6c1bb4bcfce103b3ef95e43fa5376b7d611ccc79.tar.bz2
otp-6c1bb4bcfce103b3ef95e43fa5376b7d611ccc79.zip
erts: Increase number of check_io-fd-locks
and use correct cache alignment.
Diffstat (limited to 'erts/emulator/sys/common')
-rw-r--r--erts/emulator/sys/common/erl_check_io.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/erts/emulator/sys/common/erl_check_io.c b/erts/emulator/sys/common/erl_check_io.c
index 834b77eb58..f0854e8730 100644
--- a/erts/emulator/sys/common/erl_check_io.c
+++ b/erts/emulator/sys/common/erl_check_io.c
@@ -148,10 +148,11 @@ struct removed_fd {
#ifdef ERTS_SYS_CONTINOUS_FD_NUMBERS
static int max_fds = -1;
#endif
-#define DRV_EV_STATE_LOCK_CNT 16
+
+#define DRV_EV_STATE_LOCK_CNT 128
static union {
erts_mtx_t lck;
- byte _cache_line_alignment[64];
+ byte _cache_line_alignment[ERTS_ALC_CACHE_LINE_ALIGN_SIZE(sizeof(erts_mtx_t))];
}drv_ev_state_locks[DRV_EV_STATE_LOCK_CNT];
static ERTS_INLINE erts_mtx_t* fd_mtx(ErtsSysFdType fd)