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

src: revamp internal field count tracking by jasnell · Pull Request #31960 · nodejs/node · GitHub

/ node Public

src: revamp internal field count tracking - #31960

Closed
jasnell wants to merge 1 commit into
nodejs:masterfrom
jasnell:revamp-internal-field-count-tracking
Closed

src: revamp internal field count tracking#31960
jasnell wants to merge 1 commit into
nodejs:masterfrom
jasnell:revamp-internal-field-count-tracking

Conversation

jasnell commented Feb 26, 2020

Copy link
Copy Markdown
Member

Improved handling of internal field counts.

In a separate PR, it would likely be good to switch to use of utility functions that include DCHECKs for the InternalFieldCount().

/cc @bnoordhuis @addaleax

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. labels Feb 26, 2020
jasnell mentioned this pull request Feb 26, 2020
2 tasks
Comment thread src/async_wrap.cc Outdated
Comment thread src/base_object-inl.h Outdated
Comment thread src/cares_wrap.cc Outdated
jasnell force-pushed the revamp-internal-field-count-tracking branch from 39f07a2 to ec851dc Compare February 26, 2020 03:29
jasnell requested a review from addaleax February 26, 2020 03:29

Copy link
Copy Markdown
Collaborator

bnoordhuis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks, this is already much better than the current state of things and looks like it already exposes a few infidelities and at least one outright bug.

Comment thread src/async_wrap.cc Outdated
Comment thread src/base_object.h Outdated
Comment thread src/node_object_wrap.h Outdated
Comment thread src/stream_base.h Outdated
Comment thread src/stream_base.h Outdated
Comment thread src/stream_wrap.cc Outdated
Comment thread src/async_wrap.cc Outdated

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

jasnell added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Feb 26, 2020
jasnell requested a review from bnoordhuis February 26, 2020 23:32

bnoordhuis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks, LGTM with suggestions.

Comment thread src/stream_base-inl.h Outdated
Comment thread src/stream_base.h Outdated
Comment thread src/stream_base.h Outdated

mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

lgtm

Copy link
Copy Markdown
Collaborator

Change suggested by bnoordhuis.

Improve handing of internal field counting by using enums.
Helps protect against future possible breakage if field
indexes are ever changed or added to.

Signed-off-by: James M Snell <jasnell@gmail.com>
jasnell force-pushed the revamp-internal-field-count-tracking branch from aa26581 to 9c6e9cd Compare February 29, 2020 01:46

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

jasnell added a commit that referenced this pull request Mar 2, 2020
Change suggested by bnoordhuis.

Improve handing of internal field counting by using enums.
Helps protect against future possible breakage if field
indexes are ever changed or added to.

Signed-off-by: James M Snell <jasnell@gmail.com>

PR-URL: #31960
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>

jasnell commented Mar 2, 2020
edited by addaleax
Loading

Copy link
Copy Markdown
Member Author

Landed in 0fac393

jasnell closed this Mar 2, 2020
MylesBorins pushed a commit that referenced this pull request Mar 4, 2020
Change suggested by bnoordhuis.

Improve handing of internal field counting by using enums.
Helps protect against future possible breakage if field
indexes are ever changed or added to.

Signed-off-by: James M Snell <jasnell@gmail.com>

PR-URL: #31960
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
MylesBorins mentioned this pull request Mar 4, 2020

targos commented Apr 20, 2020

Copy link
Copy Markdown
Member

Depends at least on #31569 to land on v12.x

targos removed author ready PRs that have at least one approval, no outstanding review comments, and a CI started. backport-blocked-v12.x labels Apr 25, 2020
targos pushed a commit to targos/node that referenced this pull request Apr 25, 2020
Change suggested by bnoordhuis.

Improve handing of internal field counting by using enums.
Helps protect against future possible breakage if field
indexes are ever changed or added to.

Signed-off-by: James M Snell <jasnell@gmail.com>

PR-URL: nodejs#31960
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
targos pushed a commit that referenced this pull request Apr 28, 2020
Change suggested by bnoordhuis.

Improve handing of internal field counting by using enums.
Helps protect against future possible breakage if field
indexes are ever changed or added to.

Signed-off-by: James M Snell <jasnell@gmail.com>

PR-URL: #31960
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
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

c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants


Back | FazBrowse Home | New Git URL