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

v8: fix debug builds on Windows #13634

Closed
wants to merge 1 commit into from

Conversation

bzoz
Copy link
Contributor

@bzoz bzoz commented Jun 12, 2017

Adds missing return which fixes Node 8.x debug builds on Windows, while we wait for upstream patch to land.

Fixes: #13392

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

v8

Adds missing return which fixes debug builds on Windows

Fixes: nodejs#13392
@bzoz bzoz added c++ Issues and PRs that require attention from people who are familiar with C++. v8 engine Issues and PRs related to the V8 dependency. v8.x windows Issues and PRs related to the Windows platform. labels Jun 12, 2017
@nodejs-github-bot nodejs-github-bot added v8 engine Issues and PRs related to the V8 dependency. v8.x labels Jun 12, 2017
Copy link
Contributor

@refack refack left a comment

Choose a reason for hiding this comment

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

Code LGTM (confirmed fixes issue)

@gibfahn
Copy link
Member

gibfahn commented Jun 12, 2017

cc/ @nodejs/v8

@targos
Copy link
Member

targos commented Jun 12, 2017

Is the master branch also affected? I so this should target it. I will then include the commit in #13631

@gibfahn
Copy link
Member

gibfahn commented Jun 12, 2017

Is the master branch also affected? I so this should target it. I will then include the commit in #13631

That makes sense, I think we should try to avoid v8.x/master differences where possible.

@addaleax
Copy link
Member

Is the master branch also affected?

No, this came from c8be718 (which contains parts of v8/v8@18a26cfe174) as parts of the ABI compatibility patches. The breaking code is in V8 6.0, so we may need to re-apply it once we upgrade, but ideally we could do that over upstream merge requests.

This should be safe to fast-track, it’s just adding an unused return value.

addaleax pushed a commit that referenced this pull request Jun 12, 2017
Adds missing return which fixes debug builds on Windows

Fixes: #13392
Ref: https://codereview.chromium.org/2929993003/
PR-URL: #13634
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
@addaleax
Copy link
Member

Landed in #13598 as a0f8faa

@addaleax addaleax closed this Jun 12, 2017
@addaleax addaleax mentioned this pull request Jun 12, 2017
@refack
Copy link
Contributor

refack commented Jun 12, 2017

Is the master branch also affected?

No

Confirmed (empirically).

@addaleax
Copy link
Member

Comment by @hammacher on the upstream patch:

Compilers should be able to deduce that UNIMPLEMENTED() does not return, and
should not complain.
Can you check whether this CL would also have fixed the issue:
https://chromium-review.googlesource.com/529072
(background: we require C++11 now, and all C++11-capable compilers should honour
the [[noreturn]] annotation)

If yes, we could revert this one.

Can somebody here check that? It seems reasonable to me but I’m not a Windows person.

@bzoz
Copy link
Contributor Author

bzoz commented Jun 13, 2017

I'll try to compile with that patch and get back to you.

@bzoz
Copy link
Contributor Author

bzoz commented Jun 13, 2017

Yep, that CL also fixes the issue

@refack
Copy link
Contributor

refack commented Jun 13, 2017

Just FYI issue does not happen on VS2017

@gibfahn
Copy link
Member

gibfahn commented Jun 13, 2017

Comment by @hammacher on the upstream patch:

Compilers should be able to deduce that UNIMPLEMENTED() does not return, and
should not complain.
Can you check whether this CL would also have fixed the issue:
https://chromium-review.googlesource.com/529072
(background: we require C++11 now, and all C++11-capable compilers should honour
the [[noreturn]] annotation)

If yes, we could revert this one.

Can somebody here check that? It seems reasonable to me but I’m not a Windows person.

@prepare ^^ FYI (as you opened #13392)

@gibfahn gibfahn mentioned this pull request Jun 15, 2017
3 tasks
addaleax pushed a commit that referenced this pull request Jun 17, 2017
Adds missing return which fixes debug builds on Windows

Fixes: #13392
Ref: https://codereview.chromium.org/2929993003/
PR-URL: #13634
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
@addaleax addaleax mentioned this pull request Jun 17, 2017
addaleax pushed a commit that referenced this pull request Jun 21, 2017
Adds missing return which fixes debug builds on Windows

Fixes: #13392
Ref: https://codereview.chromium.org/2929993003/
PR-URL: #13634
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
addaleax pushed a commit that referenced this pull request Jun 24, 2017
Adds missing return which fixes debug builds on Windows

Fixes: #13392
Ref: https://codereview.chromium.org/2929993003/
PR-URL: #13634
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
rvagg pushed a commit that referenced this pull request Jun 29, 2017
Adds missing return which fixes debug builds on Windows

Fixes: #13392
Ref: https://codereview.chromium.org/2929993003/
PR-URL: #13634
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
addaleax pushed a commit that referenced this pull request Jul 11, 2017
Adds missing return which fixes debug builds on Windows

Fixes: #13392
Ref: https://codereview.chromium.org/2929993003/
PR-URL: #13634
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
addaleax pushed a commit that referenced this pull request Jul 18, 2017
Adds missing return which fixes debug builds on Windows

Fixes: #13392
Ref: https://codereview.chromium.org/2929993003/
PR-URL: #13634
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
targos pushed a commit to targos/node that referenced this pull request Jul 21, 2017
Adds missing return which fixes debug builds on Windows

Fixes: nodejs#13392
Ref: https://codereview.chromium.org/2929993003/
PR-URL: nodejs#13634
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
addaleax pushed a commit that referenced this pull request Jul 24, 2017
Adds missing return which fixes debug builds on Windows

Fixes: #13392
Ref: https://codereview.chromium.org/2929993003/
PR-URL: #13634
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
@addaleax addaleax mentioned this pull request Jul 24, 2017
MylesBorins pushed a commit to MylesBorins/node that referenced this pull request Aug 2, 2017
Adds missing return which fixes debug builds on Windows

Fixes: nodejs#13392
Ref: https://codereview.chromium.org/2929993003/
Refs: nodejs#13634

PR-URL: nodejs#14582
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
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++. v8 engine Issues and PRs related to the V8 dependency. windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants