diff options
author | Sverker Eriksson <[email protected]> | 2012-07-05 15:58:03 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2012-07-05 15:58:03 +0200 |
commit | 2d519dc7ff781693451f6432e29fe55864bce482 (patch) | |
tree | cbdce5d7102795a05683e82da7183b6554422fd3 /erts/emulator/sys/common/erl_check_io.c | |
parent | 9938f051f963c327a64ca2a78d949df8fc128bc5 (diff) | |
parent | 692b2f07e4cbf95a3e519d61f76975626602f622 (diff) | |
download | otp-2d519dc7ff781693451f6432e29fe55864bce482.tar.gz otp-2d519dc7ff781693451f6432e29fe55864bce482.tar.bz2 otp-2d519dc7ff781693451f6432e29fe55864bce482.zip |
Merge branch 'sverk/opt-check-io'
* sverk/opt-check-io:
Revert conceptually wrong little fix as part of check_io opt
Make allocation of check_io tables more scalable.
Diffstat (limited to 'erts/emulator/sys/common/erl_check_io.c')
-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 c1336c60d9..ce014c19c2 100644 --- a/erts/emulator/sys/common/erl_check_io.c +++ b/erts/emulator/sys/common/erl_check_io.c @@ -39,7 +39,6 @@ #include "dtrace-wrapper.h" #ifdef ERTS_SYS_CONTINOUS_FD_NUMBERS -# define ERTS_DRV_EV_STATE_EXTRA_SIZE 128 #else # include "safe_hash.h" # define DRV_EV_STATE_HTAB_SIZE 1024 @@ -334,7 +333,9 @@ static void grow_drv_ev_state(int min_ix) { int i; - int new_len = min_ix + 1 + ERTS_DRV_EV_STATE_EXTRA_SIZE; + int new_len; + + new_len = ERTS_POLL_EXPORT(erts_poll_get_table_len)(min_ix + 1); if (new_len > max_fds) new_len = max_fds; |