Skip to content

Revert handle wrap refed check - #6401

Closed
Fishrock123 wants to merge 3 commits into
nodejs:masterfrom
Fishrock123:revert-handle_wrap-refed-check
Closed

Revert handle wrap refed check#6401
Fishrock123 wants to merge 3 commits into
nodejs:masterfrom
Fishrock123:revert-handle_wrap-refed-check

Conversation

@Fishrock123

Copy link
Copy Markdown
Contributor

Refs: #6382
Refs: #6204
Refs: #5834

I'm pretty appalled this release process is making me do this.

cc @jasnell

@Fishrock123Fishrock123 added the lib / src Issues and PRs related to general changes in the lib or src directory. label Apr 26, 2016
@nodejs-github-botnodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Apr 26, 2016
@Fishrock123

Copy link
Copy Markdown
ContributorAuthor

I would really prefer if these were rebased out of v6..

@jasnell

Copy link
Copy Markdown
Member

@jasnell

Copy link
Copy Markdown
Member

The v6.x branch is available if you can get the commits rebased out. I'll hold off doing further updates there for just a bit to give you an opportunity.

@Fishrock123
Fishrock123force-pushed the revert-handle_wrap-refed-check branch from d248a6a to 80a2229CompareApril 26, 2016 16:41
@Fishrock123

Copy link
Copy Markdown
ContributorAuthor

Updated my revert with a 3rd commit I forgot about.

@jasnell

Copy link
Copy Markdown
Member

once the other pending commits have been added to v6.x, I will apply this and rebase out the reverted commits and their reverts so they don't appear in the history for v6.x

@Fishrock123

Copy link
Copy Markdown
ContributorAuthor

@jasnell Thanks.

@jasnell

Copy link
Copy Markdown
Member

Ok, pulled this into v6.x. Should be able to close this on master

@jasnelljasnell removed this from the 6.0.0 milestone Apr 26, 2016
@jasnell

Copy link
Copy Markdown
Member

@Fishrock123 ... do we need to keep this open now?

@Fishrock123
Fishrock123 deleted the revert-handle_wrap-refed-check branch April 27, 2016 13:52
@bnoordhuis

Copy link
Copy Markdown
Member

For posterity, what happened here is that the original commits were dropped, not reverted, from the v6.x branch? So effectively the revert commits in this PR never landed in either master or v6.x?

@jasnell

Copy link
Copy Markdown
Member

Yes, the commits were dropped from v6 at @Fishrock123's request. The
commits are still in master. Those PRs need to be labeled don't land in v6
On Apr 27, 2016 7:09 AM, "Ben Noordhuis" notifications@github.com wrote:

For posterity, what happened here is that the original commits were
dropped, not reverted, from the v6.x branch? So effectively the revert
commits in this PR never landed in either master or v6.x?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#6401 (comment)

@bnoordhuis

Copy link
Copy Markdown
Member

I've added the labels to #5834 and #6204. #6382 didn't land, AFAICT.

@Fishrock123

Copy link
Copy Markdown
ContributorAuthor

sorry, I'll do my best fix this mess in the coming week

Fishrock123 added a commit to Fishrock123/node that referenced this pull request May 3, 2016
This reverts commit 9bb5a5e.
Refs: nodejs#6395
Refs: nodejs#6204
Refs: nodejs#6401
Refs: nodejs#6382Fixes: nodejs#6381
Conflicts:
src/handle_wrap.cc
test/parallel/test-handle-wrap-isrefed-tty.js
test/parallel/test-handle-wrap-isrefed.js
Fishrock123 added a commit to Fishrock123/node that referenced this pull request May 11, 2016
This reverts commit 9bb5a5e.
This API is not suitable because it depended on being able to
potentially access the handle's flag after the handle was already
cleaned up. Since this is not actually possible (obviously, oops)
this newer API no longer makes much sense, and the older API is more
suitable.
API comparison:
IsRefed -> Has a strong reference AND is alive. (Deterministic)
Unrefed -> Has a weak reference OR is dead. (Less deterministic)
Refs: nodejs#6395
Refs: nodejs#6204
Refs: nodejs#6401
Refs: nodejs#6382Fixes: nodejs#6381
PR-URL: nodejs#6546
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Conflicts:
src/handle_wrap.cc
test/parallel/test-handle-wrap-isrefed-tty.js
test/parallel/test-handle-wrap-isrefed.js
Fishrock123 added a commit to Fishrock123/node that referenced this pull request May 11, 2016
Rename slightly to HasRef() at bnoordhuis’ request.
Better reflects what we actually do for this check.
Refs: nodejs#6395
Refs: nodejs#6204
Refs: nodejs#6401
Refs: nodejs#6382
Refs: nodejs#6381
PR-URL: nodejs#6546
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
evanlucas pushed a commit that referenced this pull request May 17, 2016
This reverts commit 9bb5a5e.
This API is not suitable because it depended on being able to
potentially access the handle's flag after the handle was already
cleaned up. Since this is not actually possible (obviously, oops)
this newer API no longer makes much sense, and the older API is more
suitable.
API comparison:
IsRefed -> Has a strong reference AND is alive. (Deterministic)
Unrefed -> Has a weak reference OR is dead. (Less deterministic)
Refs: #6395
Refs: #6204
Refs: #6401
Refs: #6382Fixes: #6381
PR-URL: #6546
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Conflicts:
src/handle_wrap.cc
test/parallel/test-handle-wrap-isrefed-tty.js
test/parallel/test-handle-wrap-isrefed.js
evanlucas pushed a commit that referenced this pull request May 17, 2016
Rename slightly to HasRef() at bnoordhuis’ request.
Better reflects what we actually do for this check.
Refs: #6395
Refs: #6204
Refs: #6401
Refs: #6382
Refs: #6381
PR-URL: #6546
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Sign up for freeto 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 / 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

@Fishrock123@jasnell@bnoordhuis@nodejs-github-bot