libuv/src
Jameson Nash 3300502231
darwin: use hw.cpufrequency again for frequency info (#3679)
This reverts commit 87f0765159 and
implements a work-around instead. This has been reported to be
unnecessary, and also returns the wrong answer (off by exactly 100x),
so it is not particularly useful.

This also reverts the bugfixes to the original PR:

Revert "darwin: fix iOS compilation and functionality"
This reverts commit 1addf9b88a.

Revert "macos: fix the cfdata length in uv__get_cpu_speed (#3356)"
This reverts commit 1e7074913e.

Revert "darwin: fix -Wsometimes-uninitialized warning"
This reverts commit 6085bcef8d.

Revert "macos: fix memleaks in uv__get_cpu_speed"
This reverts commit d2482ae121.

The expected behavior on failure to read this info is to report 0 (for
example
https://github.com/libuv/libuv/blob/8975c05d199558b0cc2e98f26ce33c6090d1
d7a1/src/unix/linux.c#L834), which is which was not the case before
this PR for macos.

However hw.cpufrequency sysctl seems to be missing on darwin/arm64
(Apple Silicon), so we instead hardcode a plausible value. This value
matches what the mach kernel will report when running Rosetta apps.

Fixes: https://github.com/libuv/libuv/issues/3642
Fixes: https://github.com/libuv/libuv/issues/2911
Refs: https://github.com/libuv/libuv/pull/2912
2022-11-08 12:40:17 -05:00
..
unix darwin: use hw.cpufrequency again for frequency info (#3679) 2022-11-08 12:40:17 -05:00
win win: fix an incompatible types warning (#3798) 2022-11-08 10:24:45 +01:00
fs-poll.c win: fix style nits [NFC] (#3474) 2022-02-15 10:13:24 -05:00
heap-inl.h heap: fix heap_remove() 2014-05-23 20:04:42 +04:00
idna.c build: fix error C4146 on MSVC (#3271) 2022-02-13 00:57:43 -05:00
idna.h unix,win: support IDNA 2008 in uv_getaddrinfo() 2018-10-30 20:50:23 +01:00
inet.c unix,win: fix 'sprintf' is deprecated warning (#3813) 2022-11-08 09:56:14 +01:00
queue.h unix: use QUEUE_MOVE when iterating over lists 2015-10-08 21:47:43 +02:00
random.c build,unix: add QNX support 2020-09-22 23:14:46 -04:00
strscpy.c nfci: address some style nits 2020-08-21 17:25:42 -04:00
strscpy.h hurd: unbreak build on GNU/Hurd (#3450) 2022-02-23 12:04:18 -05:00
strtok.c core: add thread-safe strtok implementation (#3553) 2022-03-22 15:15:00 -04:00
strtok.h core: add thread-safe strtok implementation (#3553) 2022-03-22 15:15:00 -04:00
threadpool.c unix,win: give thread pool threads an 8 MB stack (#3787) 2022-10-18 23:06:47 +02:00
timer.c unix,win: initialize timer timeout field 2020-11-18 14:27:56 -05:00
uv-common.c unix,win: fix memory leak in uv_fs_scandir() (#3760) 2022-09-22 09:25:55 +02:00
uv-common.h unix,win: remove UV_HANDLE_SHUTTING flag (#3705) 2022-08-03 15:24:32 -04:00
uv-data-getter-setters.c nfci: address some style nits 2020-08-21 17:25:42 -04:00
version.c core: add UV_VERSION_HEX macro 2015-06-29 23:08:41 +02:00