History log of /libuv/ (Results 376 – 400 of 5434)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
64669fdd15-Nov-2022 daomingq

thread: add uv_thread_getcpu() (#3803)

Add uv_thread_getcpu() api to get the cpu number on which the calling
thread is running.

e141586011-Nov-2022 Trevor Norris

src: add new metrics APIs (#3749)

The following metrics are now always recorded and available via the new
uv_metrics_info() API.

* loop_count: Number of event loop iterations.

src: add new metrics APIs (#3749)

The following metrics are now always recorded and available via the new
uv_metrics_info() API.

* loop_count: Number of event loop iterations.
* events: Total number of events processed by the event handler.
* events_waiting: Total number of events waiting in the event queue when
the event provider request was made.

Benchmarking has shown no noticeable impact recording these metrics.

PR-URL: https://github.com/libuv/libuv/pull/3749

show more ...

6f69654211-Nov-2022 theanarkh

misc: fix return value of memory functions (#3818)

Specifically uv_get_free_memory and uv_get_total_memory.

3706c4f809-Nov-2022 Santiago Gimeno

win,pipe: fixes in uv_pipe_connect()

Make unices and windows consistent when closing a pipe while it's
connecting so they all return `UV_ECANCELED`.

Avoid race condition between

win,pipe: fixes in uv_pipe_connect()

Make unices and windows consistent when closing a pipe while it's
connecting so they all return `UV_ECANCELED`.

Avoid race condition between `pipe_connect_thread_proc()` and `uv_close()` when
accessing `handle->name`.

Fixes: https://github.com/libuv/libuv/issues/3578

show more ...

96637d0309-Nov-2022 Santiago Gimeno

win,test: change format of TEST_PIPENAME's

So `WaitNamedPipe()` doesn't fail. Increase the number of clients in
`pipe_connect_multiple` so `CreateFile()` returns `ERROR_PIPE_BUSY` and

win,test: change format of TEST_PIPENAME's

So `WaitNamedPipe()` doesn't fail. Increase the number of clients in
`pipe_connect_multiple` so `CreateFile()` returns `ERROR_PIPE_BUSY` and
the codepath leading to `WaitNamedPipe()` is exercised.

show more ...

3300502208-Nov-2022 Jameson Nash

darwin: use hw.cpufrequency again for frequency info (#3679)

This reverts commit 87f076515937345fda1a1dbc598f34e65e1b81c7 and
implements a work-around instead. This has been reported to

darwin: use hw.cpufrequency again for frequency info (#3679)

This reverts commit 87f076515937345fda1a1dbc598f34e65e1b81c7 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 1addf9b88a17bc32d009d377a14d540ccddd06db.

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

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

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

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

show more ...

8975c05d08-Nov-2022 Ben Noordhuis

doc: document 0 return value for free/total memory (#3817)

Refs: https://github.com/libuv/libuv/discussions/3809

07949ce208-Nov-2022 twosee

win: fix an incompatible types warning (#3798)

dff3f8cc08-Nov-2022 ywave620 <60539365+ywave620@users.noreply.github.com>

win: optimize udp receive performance (#3807)

Do at most 32 nonblocking udp receive in a row.

Fixes: https://github.com/libuv/libuv/issues/3704

8a1f378f08-Nov-2022 Qix

doc: mention close_cb can be NULL (#3810)

ec5130c308-Nov-2022 twosee

unix,win: fix 'sprintf' is deprecated warning (#3813)

a7b16bfb07-Nov-2022 Saúl Ibarra Corretgé

win: drop code checking for Windows XP / Server 2k3

Our minimum requirements are Windows 8 now.

2b4b293e04-Nov-2022 Saúl Ibarra Corretgé

win,tcp,udp: remove "active streams" optimization

It has been disabled for 11 years, I guess it should remain that way.

c880de3027-Oct-2022 Santiago Gimeno

build: remove bashism from autogen.sh

c83b9bd925-Oct-2022 Ben Noordhuis

include: map ENODATA error code (#3802)

Fixes: https://github.com/libuv/libuv/issues/3795

e900006621-Oct-2022 daomingq

thread: add support for affinity (#3774)

Backported thread affinity feature and related dependency commits
from master. It will add support for those APIs: uv_cpumask_size,
uv_thread

thread: add support for affinity (#3774)

Backported thread affinity feature and related dependency commits
from master. It will add support for those APIs: uv_cpumask_size,
uv_thread_setaffinity, uv_thread_getaffinity.
The supported platforms are Linux, Freebsd, and Windows.
Empty implementations (returning UV_ENOTSUP) on non-supported platforms
(such as OS X and AIX).

show more ...

357d28a221-Oct-2022 number201724

win,pipe: improve method of obtaining pid for ipc (#3765)

In the old version of uv_pipe_open, the parent process ID is used
always. If the open pipe is used in the same process, the pare

win,pipe: improve method of obtaining pid for ipc (#3765)

In the old version of uv_pipe_open, the parent process ID is used
always. If the open pipe is used in the same process, the parent
process will be obtained incorrectly.

Now we first get the client pid and compare it with its own pid. If it
is the same, then get the server pid. If the two are the same, then the
pipe is from the same process.

Fixes: https://github.com/libuv/libuv/issues/3766

show more ...

1de43a1a21-Oct-2022 Jameson Nash

build: support AddressSanitizer on MSVC (#3692)

Fixes: https://github.com/libuv/libuv/issues/3682

821b0ba821-Oct-2022 jensbjorgensen

doc: add uv_poll_cb status==UV_EBADF note (#3797)

acfe668e18-Oct-2022 Ben Noordhuis

build: add MemorySanitizer (MSAN) support (#3788)

- unpoison results from linux system call wrappers

- unpoison results from stat/fstat/lstat to pacify clang 14
(fixed in late

build: add MemorySanitizer (MSAN) support (#3788)

- unpoison results from linux system call wrappers

- unpoison results from stat/fstat/lstat to pacify clang 14
(fixed in later versions)

- add MSAN build option

- turn on MSAN CI build

show more ...

73b0c1f918-Oct-2022 Ben Noordhuis

unix,win: give thread pool threads an 8 MB stack (#3787)

Give the threads in the thread pool a stack size that is consistent
across platforms and architectures.

Fixes: https://g

unix,win: give thread pool threads an 8 MB stack (#3787)

Give the threads in the thread pool a stack size that is consistent
across platforms and architectures.

Fixes: https://github.com/libuv/libuv/issues/3786

show more ...

3e7d2a6408-Oct-2022 ywave620

stream: process more than one write req per loop tick (#3728)

Fixes: https://github.com/libuv/libuv/issues/3668

cd1a510d02-Oct-2022 Ben Noordhuis

linux: merge files back into single file (#3778)

I split up linux.c around 2012 for no real reason and now I'm merging
it back together, again for no real reason.

I half-jest. I

linux: merge files back into single file (#3778)

I split up linux.c around 2012 for no real reason and now I'm merging
it back together, again for no real reason.

I half-jest. I like the idea of having everything together because I
practically forgot linux-inotify.c existed. It also makes io_uring
experiments a little easier.

Last but not least, it removes about 100 lines of license boilerplate.

show more ...

9a5a514002-Oct-2022 Ben Noordhuis

linux: remove unused or obsolete syscall wrappers (#3777)

preadv, pwritev, dup3 and utimensat all exist in 2.6.32 kernels, libuv's
minimum supported kernel.

The wrapper for utim

linux: remove unused or obsolete syscall wrappers (#3777)

preadv, pwritev, dup3 and utimensat all exist in 2.6.32 kernels, libuv's
minimum supported kernel.

The wrapper for utimensat was already gone, only the define remained.

show more ...

f610339f01-Oct-2022 Christian Clason

build: add LIBUV_BUILD_SHARED cmake option (#3762)

Co-authored-by: Tim Tavlintsev <ttavlintsev@enttec.com>
Fixes: https://github.com/libuv/libuv/issues/3637

1...<<11121314151617181920>>...218