diff options
author | Sverker Eriksson <[email protected]> | 2017-04-12 17:34:46 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2017-09-15 10:04:42 +0200 |
commit | 6c1bb4bcfce103b3ef95e43fa5376b7d611ccc79 (patch) | |
tree | 38e7145e89b5448306ee33cff86074244aabf3d2 | |
parent | 68cbafa26fa3cc36eb2ed3dd26c0dda41f6fec44 (diff) | |
download | otp-6c1bb4bcfce103b3ef95e43fa5376b7d611ccc79.tar.gz otp-6c1bb4bcfce103b3ef95e43fa5376b7d611ccc79.tar.bz2 otp-6c1bb4bcfce103b3ef95e43fa5376b7d611ccc79.zip |
erts: Increase number of check_io-fd-locks
and use correct cache alignment.
-rw-r--r-- | erts/emulator/sys/common/erl_check_io.c | 5 |
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) |