#
988d225c |
| 24-Nov-2022 |
Tim Besard |
unix,win: add uv_get_available_memory() (#3754)
|
#
6f696542 |
| 11-Nov-2022 |
theanarkh |
misc: fix return value of memory functions (#3818) Specifically uv_get_free_memory and uv_get_total_memory.
|
Revision tags: v1.41.0, v1.40.0, v1.39.0, v1.38.1, v1.38.0, v1.37.0, v1.36.0, v1.35.0 |
|
#
1bcfbfd0 |
| 10-Mar-2020 |
Ben Noordhuis |
src: add uv__reallocf() Modeled after FreeBSD's `reallocf(3)`: a version of `realloc(3)` that frees the memory when reallocation fails, simplifying error handling in many cases.
src: add uv__reallocf() Modeled after FreeBSD's `reallocf(3)`: a version of `realloc(3)` that frees the memory when reallocation fails, simplifying error handling in many cases. PR-URL: https://github.com/libuv/libuv/pull/2735 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
#
7611294d |
| 15-Feb-2020 |
Ben Davies |
unix: fix uv_cpu_info always returning UV_ENOTDIR on OpenBSD The wrong names and name sizes were being used with `sysctl(2)`, which in particular made the call to get the machine's CPU s
unix: fix uv_cpu_info always returning UV_ENOTDIR on OpenBSD The wrong names and name sizes were being used with `sysctl(2)`, which in particular made the call to get the machine's CPU speed always fail with ENOTDIR. PR-URL: https://github.com/libuv/libuv/pull/2685 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
Revision tags: v1.34.2, v1.34.1 |
|
#
2ab3dc15 |
| 16-Dec-2019 |
David Carlier |
unix: pass sysctl size arg using ARRAY_SIZE macro PR-URL: https://github.com/libuv/libuv/pull/2510 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Santiago Gimeno <santi
unix: pass sysctl size arg using ARRAY_SIZE macro PR-URL: https://github.com/libuv/libuv/pull/2510 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
Revision tags: v1.34.0, v1.33.1, v1.33.0, v1.32.0 |
|
#
59146f2f |
| 07-Sep-2019 |
David Carlier |
unix: fix {Net,Open}BSD build Mainly disabling source membership for udp feature, unsupported. PR-URL: https://github.com/libuv/libuv/pull/2458 Reviewed-By: Colin Ihrig <cjihrig
unix: fix {Net,Open}BSD build Mainly disabling source membership for udp feature, unsupported. PR-URL: https://github.com/libuv/libuv/pull/2458 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <s@saghul.net>
show more ...
|
#
040543ee |
| 17-Aug-2019 |
Santiago Gimeno |
src: move uv_free_cpu_info to uv-common.c PR-URL: https://github.com/libuv/libuv/pull/2433 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.co
src: move uv_free_cpu_info to uv-common.c PR-URL: https://github.com/libuv/libuv/pull/2433 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
#
d6fd0a52 |
| 17-Aug-2019 |
Santiago Gimeno |
openbsd: fix uv_cpu_info Make sure the `uv_cpu_info_t` array is fully freed in case of error. Also, make it more robust by setting `count` to `0` and `cpu_info` to `NULL` in case of
openbsd: fix uv_cpu_info Make sure the `uv_cpu_info_t` array is fully freed in case of error. Also, make it more robust by setting `count` to `0` and `cpu_info` to `NULL` in case of error, so a subsequent call to `uv_free_cpu_info()` does not segfault. Refs: https://github.com/libuv/libuv/issues/2068 PR-URL: https://github.com/libuv/libuv/pull/2432 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
Revision tags: v1.31.0, v1.30.1, v1.30.0 |
|
#
64ab7cc7 |
| 07-Jun-2019 |
Ben Davies |
OpenBSD: only get active CPU core count Newer computers may have some cores offline because of the Meltdown/Spectre patches from a while ago, making uv_cpu_info potentially misleadin
OpenBSD: only get active CPU core count Newer computers may have some cores offline because of the Meltdown/Spectre patches from a while ago, making uv_cpu_info potentially misleading and leading to people attempting to use more threads than they actually have available. This makes it so only the cores that are online and doing any work are counted. PR-URL: https://github.com/libuv/libuv/pull/2326 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
Revision tags: v1.29.1, v1.29.0 |
|
#
c4e9657d |
| 01-May-2019 |
Kelvin Jin |
unix,win: add uv_get_constrained_memory() Fixes: https://github.com/libuv/libuv/issues/2286 PR-URL: https://github.com/libuv/libuv/pull/2289 Reviewed-By: Ben Noordhuis <info@bnoordhu
unix,win: add uv_get_constrained_memory() Fixes: https://github.com/libuv/libuv/issues/2286 PR-URL: https://github.com/libuv/libuv/pull/2289 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
Revision tags: v1.28.0, v1.27.0, v1.26.0, v1.25.0, v1.24.1, v1.24.0 |
|
#
d0b15844 |
| 16-Oct-2018 |
Santiago Gimeno |
core,bsd: refactor process_title functions Use `setproctitle()` in `FreeBSD` as in the other `BSD` flavours. Move `uv_setup_args()`, `uv_set_process_title()` and `uv_get_process_title()`
core,bsd: refactor process_title functions Use `setproctitle()` in `FreeBSD` as in the other `BSD` flavours. Move `uv_setup_args()`, `uv_set_process_title()` and `uv_get_process_title()` to `bsd-proctitle.c` so it's used by the supported BSDs. PR-URL: https://github.com/libuv/libuv/pull/2042 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
show more ...
|
Revision tags: v1.23.2, v1.23.1, v1.23.0, v1.22.0, v1.21.0, v1.20.3, v1.20.2, v1.20.1, v1.20.0, v1.19.2, v1.19.1 |
|
#
89cbbc89 |
| 19-Jan-2018 |
Mason X |
include,src: introduce UV__ERR() macro Using -errno, -E**, and -pthread_function() can be error prone, and breaks compatibility with some operating systems that already negate errno'
include,src: introduce UV__ERR() macro Using -errno, -E**, and -pthread_function() can be error prone, and breaks compatibility with some operating systems that already negate errno's (e.g. Haiku). This commit adds a UV__ERR() macro that ensures libuv errors are negative. Fixes: https://github.com/libuv/help/issues/39 PR-URL: https://github.com/libuv/libuv/pull/1687 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
Revision tags: v1.19.0, v1.18.0, v1.17.0 |
|
#
8a6d1b32 |
| 15-Nov-2017 |
Matt Harrison |
unix: make get(set)_process_title MT-safe Used a shared uv_mutex_t in unix implementations of these functions to prevent simultaneous execution. Fixes: https://github.com/libuv/
unix: make get(set)_process_title MT-safe Used a shared uv_mutex_t in unix implementations of these functions to prevent simultaneous execution. Fixes: https://github.com/libuv/libuv/issues/271 PR-URL: https://github.com/libuv/libuv/pull/1640 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
Revision tags: v1.16.1, v1.16.0, v1.15.0, v1.14.1, v1.14.0, v1.13.1, v1.13.0 |
|
#
78c17238 |
| 01-Jul-2017 |
Matthew Taylor |
unix: always copy process title into local buffer Ensures that the user's argv is copied into a local buffer when calling uv_setup_args. Before, the argv was simply being pointed to, whi
unix: always copy process title into local buffer Ensures that the user's argv is copied into a local buffer when calling uv_setup_args. Before, the argv was simply being pointed to, which meant that libuv could end up accessing invalid memory if the user decided to later edit the memory at that location. It also meant that a subsequent call to uv_set_process_title would never write more characters than the length of argv[0]. With the new changes, argv[0] is copied into a temporary buffer and any subsequent calls to uv_set_process_title will thus be able to copy as many characters as the call to uv__strdup permits. Note that on *BSD and AIX this behaviour was already in effect . Some error checking (specifically checking the result of uv__strdup) has been added, and calls to uv__free rearranged so that in case of ENOMEM uv__free can't be called erroneously. Fixes: https://github.com/libuv/libuv/issues/1395 PR-URL: https://github.com/libuv/libuv/pull/1396 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
Revision tags: v1.12.0 |
|
#
22fc9285 |
| 13-May-2017 |
James McCoy |
build,openbsd: remove kvm-related code Remove the kvm.h include since 38323c9fb replaced the use of kvm_open() with sysctl(), Conditionally check for kvm_open() on non-OpenBSD p
build,openbsd: remove kvm-related code Remove the kvm.h include since 38323c9fb replaced the use of kvm_open() with sysctl(), Conditionally check for kvm_open() on non-OpenBSD platforms so LIBS (and libuv.pc) does not unnecessarily contain "-lkvm". Fixes: https://github.com/libuv/libuv/issues/1340 PR-URL: https://github.com/libuv/libuv/pull/1344 Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
show more ...
|
#
f277cb6f |
| 21-Feb-2017 |
Brad King |
unix: factor out reusable BSD ifaddrs impl Create a dedicated source file to share among platforms on which we find ifaddrs using the BSD getifaddrs API. De-duplicate our existing copie
unix: factor out reusable BSD ifaddrs impl Create a dedicated source file to share among platforms on which we find ifaddrs using the BSD getifaddrs API. De-duplicate our existing copies of this implementation on such platforms. PR-URL: https://github.com/libuv/libuv/pull/1240 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
#
0f84c305 |
| 18-Feb-2017 |
Brad King |
unix: factor out getifaddrs result filter On platforms using getifaddrs we iterate over the interfaces two or three times. First we count them, then we enumerate them, and then we f
unix: factor out getifaddrs result filter On platforms using getifaddrs we iterate over the interfaces two or three times. First we count them, then we enumerate them, and then we fill in physical addresses. Each loop needs to do the same filtering, so factor out the exclusion test into a helper function for each platform. PR-URL: https://github.com/libuv/libuv/pull/1240 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
#
80c4cf6b |
| 18-Feb-2017 |
Brad King |
unix: filter getifaddrs results consistently We loop over getifaddrs results multiple times. Fix the filter conditions to be consistent for all passes. PR-URL: https://github.c
unix: filter getifaddrs results consistently We loop over getifaddrs results multiple times. Fix the filter conditions to be consistent for all passes. PR-URL: https://github.com/libuv/libuv/pull/1240 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
#
2ba39be6 |
| 16-Feb-2017 |
Brad King |
unix: factor out reusable POSIX hrtime impl Create a dedicated source file to share among platforms on which we implement hrtime using POSIX `clock_gettime`. De-duplicate our existi
unix: factor out reusable POSIX hrtime impl Create a dedicated source file to share among platforms on which we implement hrtime using POSIX `clock_gettime`. De-duplicate our existing copies of this implementation on such platforms. PR-URL: https://github.com/libuv/libuv/pull/1239 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
#
c355c8b1 |
| 06-Feb-2017 |
Santiago Gimeno |
test: fix tests on OpenBSD It fixes `process_title`, `poll_bad_fdtype` and `poll_nested_kqueue` tests. Fixes: https://github.com/libuv/libuv/issues/1216 PR-URL: https://gith
test: fix tests on OpenBSD It fixes `process_title`, `poll_bad_fdtype` and `poll_nested_kqueue` tests. Fixes: https://github.com/libuv/libuv/issues/1216 PR-URL: https://github.com/libuv/libuv/pull/1218 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
Revision tags: v1.11.0, v1.10.2, v1.10.1, v1.10.0 |
|
#
840a8c59 |
| 27-Jun-2016 |
cjihrig |
unix,win: make uv_get_process_title() stricter This commit causes uv_get_process_title() to: - return EINVAL if the buffer is null or size is 0 - return ENOBUFS if the title is too
unix,win: make uv_get_process_title() stricter This commit causes uv_get_process_title() to: - return EINVAL if the buffer is null or size is 0 - return ENOBUFS if the title is too big for the buffer - null terminate the buffer on success Fixes: https://github.com/libuv/libuv/issues/315 PR-URL: https://github.com/libuv/libuv/pull/928 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
Revision tags: v0.10.37, v1.9.1 |
|
#
322de63a |
| 18-Apr-2016 |
Ben Noordhuis |
unix: guard against clobbering errno in uv__free() Libuv expects that free() does not clobber errno. The system allocator honors that assumption but custom allocators may not be so care
unix: guard against clobbering errno in uv__free() Libuv expects that free() does not clobber errno. The system allocator honors that assumption but custom allocators may not be so careful. PR-URL: https://github.com/libuv/libuv/pull/837 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
show more ...
|
Revision tags: v1.9.0, v1.8.0 |
|
#
81072b98 |
| 02-Nov-2015 |
Ian Kronquist |
misc: remove unnecessary null pointer checks Fixes: https://github.com/libuv/libuv/issues/595 PR-URL: https://github.com/libuv/libuv/pull/604 Reviewed-By: Saúl Ibarra Corretgé <saghu
misc: remove unnecessary null pointer checks Fixes: https://github.com/libuv/libuv/issues/595 PR-URL: https://github.com/libuv/libuv/pull/604 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
show more ...
|
Revision tags: v1.7.5 |
|
#
25c369d4 |
| 22-Sep-2015 |
Jianghua Yang |
unix: fix memory leak in uv_interface_addresses PR-URL: https://github.com/libuv/libuv/pull/537 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com> |
Revision tags: v1.7.4, v1.7.3, v1.7.2, v1.7.1, v1.7.0, v1.6.1, v1.6.0 |
|
#
bddd6a84 |
| 26-May-2015 |
Saúl Ibarra Corretgé |
core: add ability to customize memory allocator This patch is composed by the work done in https://github.com/libuv/libuv/pull/231 and https://github.com/libuv/libuv/pull/287 plus so
core: add ability to customize memory allocator This patch is composed by the work done in https://github.com/libuv/libuv/pull/231 and https://github.com/libuv/libuv/pull/287 plus some changes by yours truly. Thanks @beevik and @mattsta for their work on this! PR-URL: https://github.com/libuv/libuv/pull/368 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
show more ...
|