Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: cherry-pick libuv@e900006 and libuv@64669fd #45561

Conversation

qdaoming
Copy link
Contributor

Original commit log for libuv@e900006 follows:

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).

Original commit log for libuv@64669fd follows:

thread: add uv_thread_getcpu() (#3803)

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

Original commit log for libuv@e900006 follows:

thread: add support for affinity (nodejs#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).

Original commit log for libuv@64669fd follows:

thread: add uv_thread_getcpu() (nodejs#3803)

Add uv_thread_getcpu() api to get the cpu number on which the calling
thread is running.
@nodejs-github-bot nodejs-github-bot added libuv Issues and PRs related to the libuv dependency or the uv binding. needs-ci PRs that need a full CI run. labels Nov 21, 2022
@lpinca
Copy link
Member

lpinca commented Nov 21, 2022

The commit is not included in a release yet, so I would wait and update to the next version of libuv instead of cherry picking commits from the v1.x branch.

@qdaoming
Copy link
Contributor Author

@lpinca My another PR in node.js (#44459) depends on this libuv feature,
and it might need to wait for 6 or more months to sync node.js's libuv to main libuv repo for this feature.
It will be much better that I can commit this PR directly now.

@cjihrig
Copy link
Contributor

cjihrig commented Nov 22, 2022

@qdaoming-intel we generally try not to cherry-pick commits from libuv. That project is run mostly by Node.js collaborators, so you could try requesting a release on the libuv issue tracker.

@richardlau
Copy link
Member

We generally do not want to cherry pick features for dependencies -- if we were to start using this new API it will break anyone building Node.js against a shared libuv (e.g. Linux distros).

@qdaoming
Copy link
Contributor Author

qdaoming commented Dec 5, 2022

OK. I will close this PR and waits for libuv updates.

@qdaoming qdaoming closed this Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libuv Issues and PRs related to the libuv dependency or the uv binding. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants