Skip to content

src: move req_wrap_queue to base class of ReqWrap - #26148

Closed
addaleax wants to merge 1 commit into
nodejs:masterfrom
addaleax:req-wrap-queue
Closed

src: move req_wrap_queue to base class of ReqWrap#26148
addaleax wants to merge 1 commit into
nodejs:masterfrom
addaleax:req-wrap-queue

Conversation

@addaleax

Copy link
Copy Markdown
Member

Introduce a second base class for ReqWrap that does not
depend on a template parameter and move the req_wrap_queue_
field to it.

This addresses undefined behaviour that occurs when casting
to ReqWrap<uv_req_t> in the ReqWrap constructor.

Refs: #26131

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

Introduce a second base class for `ReqWrap` that does not
depend on a template parameter and move the `req_wrap_queue_`
field to it.
This addresses undefined behaviour that occurs when casting
to `ReqWrap<uv_req_t>` in the `ReqWrap` constructor.
Refs: nodejs#26131
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-botnodejs-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 16, 2019
@danbev

This comment has been minimized.

@addaleaxaddaleax added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Feb 19, 2019
@addaleax

Copy link
Copy Markdown
MemberAuthor

@danbev

Copy link
Copy Markdown
Contributor

Re-run of failing node-test-commit-freebsd

@addaleax

Copy link
Copy Markdown
MemberAuthor

Landed in 49a2e40

@addaleax
addaleax deleted the req-wrap-queue branch February 20, 2019 15:54
addaleax added a commit that referenced this pull request Feb 20, 2019
Introduce a second base class for `ReqWrap` that does not
depend on a template parameter and move the `req_wrap_queue_`
field to it.
This addresses undefined behaviour that occurs when casting
to `ReqWrap<uv_req_t>` in the `ReqWrap` constructor.
Refs: #26131
PR-URL: #26148
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
addaleax added a commit that referenced this pull request Feb 21, 2019
Introduce a second base class for `ReqWrap` that does not
depend on a template parameter and move the `req_wrap_queue_`
field to it.
This addresses undefined behaviour that occurs when casting
to `ReqWrap<uv_req_t>` in the `ReqWrap` constructor.
Refs: #26131
PR-URL: #26148
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@BridgeARBridgeAR mentioned this pull request Feb 26, 2019
rvagg pushed a commit that referenced this pull request Feb 28, 2019
Introduce a second base class for `ReqWrap` that does not
depend on a template parameter and move the `req_wrap_queue_`
field to it.
This addresses undefined behaviour that occurs when casting
to `ReqWrap<uv_req_t>` in the `ReqWrap` constructor.
Refs: #26131
PR-URL: #26148
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.c++Issues and PRs that require attention from people who are familiar with C++.lib / srcIssues 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.

4 participants

@addaleax@nodejs-github-bot@danbev@jasnell