GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: implement v8::Platform::CallDelayedOnWorkerThread by alexkozy · Pull Request #22383 · nodejs/node

Conversation

@alexkozy

@alexkozy alexkozy commented Aug 18, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

This method is crucial for Runtime.evaluate protocol command with
timeout flag. At least Chrome DevTools frontend uses this flag for
every execution in console.

Fixes: #22157

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bricss and TimothyGu reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
@alexkozy
alexkozy requested a review from addaleax August 18, 2018 02:00
@nodejs-github-bot

nodejs-github-bot commented Aug 18, 2018

Copy link
Copy Markdown
Collaborator

@ak239 build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/584/pipeline

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Aug 18, 2018
@alexkozy alexkozy mentioned this pull request Aug 18, 2018
REPL reloads itself when typing into the console GoogleChromeLabs/ndb#119
Closed
devsnek
devsnek approved these changes Aug 18, 2018
View reviewed changes
addaleax
addaleax approved these changes Aug 18, 2018
View reviewed changes
Comment thread src/node_platform.cc Outdated

@addaleax addaleax Aug 18, 2018

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Shouldn’t the close callback free the memory allocated for handle here? Or, alternatively …

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@alexkozy alexkozy Aug 19, 2018

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

yes, we should, fixed.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/node_platform.cc Outdated

@addaleax addaleax Aug 18, 2018

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

… I think we could use the fact that std::set comes with retaining referential integrity in the presence of insert/erase operations, so we could avoid the double allocations and use std::set<uv_timer_t> instead, right? (If not: I don’t think there’s an advantage over std::unordered_set, right?)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@alexkozy alexkozy Aug 19, 2018

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Explicit allocation looks simpler to me, so I replaced set with unordered_set. Thank you!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/node_platform.cc Outdated

@addaleax addaleax Aug 18, 2018

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Nit: scheduler = ContainerOf(&DelayedTaskScheduler::loop_, timer->loop);

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@alexkozy alexkozy Aug 19, 2018

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

done.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@addaleax

addaleax commented Aug 19, 2018

Copy link
Copy Markdown
Member

New CI: https://ci.nodejs.org/job/node-test-pull-request/16566/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@addaleax addaleax added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Aug 19, 2018
jasnell
jasnell approved these changes Aug 19, 2018
View reviewed changes
@joyeecheung

joyeecheung commented Aug 20, 2018

Copy link
Copy Markdown
Member

This PR needs a rebase against master to avoid the git failure in the CI.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joyeecheung joyeecheung mentioned this pull request Aug 20, 2018
CI failures: 20180820 nodejs/reliability#15
Closed
@alexkozy

alexkozy commented Aug 20, 2018

Copy link
Copy Markdown
Member Author

I rebased and restarted CI: https://ci.nodejs.org/job/node-test-pull-request/16589/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexkozy
src: implement v8::Platform::CallDelayedOnWorkerThread
4cac425
This method is crucial for Runtime.evaluate protocol command with
timeout flag. At least Chrome DevTools frontend uses this method for
every execution in console.

Fixes: #22157
@alexkozy

alexkozy commented Aug 21, 2018

Copy link
Copy Markdown
Member Author

Landed in b1e2612

devsnek reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexkozy alexkozy closed this Aug 21, 2018
alexkozy added a commit that referenced this pull request Aug 21, 2018
@alexkozy
src: implement v8::Platform::CallDelayedOnWorkerThread
b1e2612
This method is crucial for Runtime.evaluate protocol command with
timeout flag. At least Chrome DevTools frontend uses this method for
every execution in console.

PR-URL: #22383
Fixes: #22157
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@alexkozy
alexkozy deleted the implemented-post-delayed-task branch August 21, 2018 01:11
@addaleax

addaleax commented Aug 27, 2018

Copy link
Copy Markdown
Member

@ak239 Can you open a backport PR against v10.x-staging here (→ guide), since this doesn’t apply cleanly, unfortunately?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@addaleax addaleax added the backport-requested-v10.x label Aug 27, 2018
@alexkozy alexkozy mentioned this pull request Aug 28, 2018
[v10.x backport] src: implement v8::Platform::CallDelayedOnWorkerThread #22567
Closed
3 tasks done
@alexkozy

alexkozy commented Aug 28, 2018

Copy link
Copy Markdown
Member Author

I uploaded rebased PR and started CI there, I won't have internet connection next 12 hours, so I would appreciate help with merging my backport, thanks ahead!

addaleax reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

addaleax pushed a commit that referenced this pull request Aug 28, 2018
@alexkozy @addaleax
src: implement v8::Platform::CallDelayedOnWorkerThread
b3dab8c
This method is crucial for Runtime.evaluate protocol command with
timeout flag. At least Chrome DevTools frontend uses this method for
every execution in console.

Backport-PR-URL: #22567
PR-URL: #22383
Fixes: #22157
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
@addaleax addaleax added backported-to-v10.x and removed backport-requested-v10.x labels Aug 28, 2018
@targos targos removed the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Aug 28, 2018
targos pushed a commit that referenced this pull request Sep 3, 2018
@alexkozy @targos
src: implement v8::Platform::CallDelayedOnWorkerThread
02e3daa
This method is crucial for Runtime.evaluate protocol command with
timeout flag. At least Chrome DevTools frontend uses this method for
every execution in console.

Backport-PR-URL: #22567
PR-URL: #22383
Fixes: #22157
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
@targos targos mentioned this pull request Sep 5, 2018
Release proposal: v10.10.0 #22716
Merged
targos pushed a commit that referenced this pull request Sep 6, 2018
@alexkozy @targos
src: implement v8::Platform::CallDelayedOnWorkerThread
4d802f0
This method is crucial for Runtime.evaluate protocol command with
timeout flag. At least Chrome DevTools frontend uses this method for
every execution in console.

Backport-PR-URL: #22567
PR-URL: #22383
Fixes: #22157
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
This was referenced Sep 6, 2018
2018-09-06 Version 10.10.0 (Current) @targos beevelop/docker-android-nodejs#236
Closed
2018-09-06 Version 10.10.0 (Current) @targos beevelop/docker-nodejs#221
Closed
blattersturm pushed a commit to citizenfx/node that referenced this pull request Nov 3, 2018
@alexkozy @blattersturm
src: implement v8::Platform::CallDelayedOnWorkerThread
a14e56b
This method is crucial for Runtime.evaluate protocol command with
timeout flag. At least Chrome DevTools frontend uses this method for
every execution in console.

PR-URL: nodejs#22383
Fixes: nodejs#22157
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@addaleax addaleax added the v8 platform Issues and PRs related to the Node.js implementation of v8::Platform. label Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jasnell jasnell jasnell approved these changes
@addaleax addaleax addaleax approved these changes
+1 more reviewer
@devsnek devsnek devsnek approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. v8 platform Issues and PRs related to the Node.js implementation of v8::Platform.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

UNREACHABLE in WorkerThreadsTaskRunner::PostDelayedTask

Uh oh!

There was an error while loading. Please reload this page.

7 participants

@alexkozy @nodejs-github-bot @addaleax @joyeecheung @jasnell @devsnek @targos
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.