FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

src: remove unused PromiseWrap-related code by joyeecheung · Pull Request #49335 · nodejs/node · GitHub

/ node Public

src: remove unused PromiseWrap-related code - #49335

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
joyeecheung:promise-internal-field
Sep 1, 2023
Merged

src: remove unused PromiseWrap-related code#49335
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
joyeecheung:promise-internal-field

Conversation

Copy link
Copy Markdown
Member

PromiseWrap has been removed in
#39135 and we do not have any internal object setting the internal field at 0 as a promise (we always set the first field as an aligned pointer to the embedder ID). As result GetAssignedPromiseWrapAsyncId() always just returns AsyncWrap::kInvalidAsyncId and turn the removed block into noops. So the block just can be removed.

PromiseWrap has been removed in
nodejs#39135 and we do not have any
internal object setting the internal field at 0 as a promise
(we always set the first field as an aligned pointer to
the embedder ID). As result GetAssignedPromiseWrapAsyncId()
always just returns AsyncWrap::kInvalidAsyncId and turn
the removed block into noops. So the block just can be removed.
nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels Aug 26, 2023

Copy link
Copy Markdown
Member Author

Also see the coverage report which shows that the code is unused and always just returns AsyncWrap::kInvalidAsyncId: https://app.codecov.io/gh/nodejs/node/commit/4ba73706507aebbd746838e903e38d568ca87e9d/blob/src/node_task_queue.cc#L54

joyeecheung added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 26, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 26, 2023

This comment was marked as outdated.

This comment was marked as outdated.

joyeecheung added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 31, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 31, 2023

This comment was marked as outdated.

Copy link
Copy Markdown
Collaborator

Flarna added async_hooks Issues and PRs related to the async hooks subsystem. commit-queue Add this label to land a pull request using GitHub Actions. labels Sep 1, 2023
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 1, 2023
nodejs-github-bot merged commit 295572e into nodejs:main Sep 1, 2023

Copy link
Copy Markdown
Collaborator

Landed in 295572e

UlisesGascon pushed a commit that referenced this pull request Sep 10, 2023
PromiseWrap has been removed in
#39135 and we do not have any
internal object setting the internal field at 0 as a promise
(we always set the first field as an aligned pointer to
the embedder ID). As result GetAssignedPromiseWrapAsyncId()
always just returns AsyncWrap::kInvalidAsyncId and turn
the removed block into noops. So the block just can be removed.

PR-URL: #49335
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
UlisesGascon mentioned this pull request Sep 10, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

async_hooks Issues and PRs related to the async hooks subsystem. c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL