Skip to content

Terminate timer scheduler thread during shutdown - #16184

Merged
bors-servo merged 1 commit into
servo:masterfrom
ferjm:issue-16153-terminate-time-scheduler-shutdown
Mar 30, 2017
Merged

bors-servo merged 1 commit into
servo:masterfrom
ferjm:issue-16153-terminate-time-scheduler-shutdown

Conversation

@ferjm

@ferjm ferjm commented Mar 29, 2017 •

Copy link
Copy Markdown
Contributor

This change is Reviewable

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @asajeffrey: components/constellation/pipeline.rs, components/constellation/constellation.rs, components/constellation/timer_scheduler.rs
  • @fitzgen: components/script/timers.rs, components/script/dom/globalscope.rs, components/script/script_thread.rs, components/script/dom/window.rs, components/script_traits/lib.rs, components/script_traits/lib.rs
  • @KiChjang: components/script/timers.rs, components/script/dom/globalscope.rs, components/script/script_thread.rs, components/script/dom/window.rs, components/script_traits/lib.rs, components/script_traits/lib.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Mar 29, 2017
@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!

@ferjm

ferjm commented Mar 29, 2017

Copy link
Copy Markdown
Contributor Author

r? @jdm

@jdm jdm 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.

This looks really good!

if shutting_down {
break;
}
timeout_thread.unpark();

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.

We should probably unpark the thread before breaking out of this loop.

@jdm jdm added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Mar 30, 2017
@ferjm
ferjm force-pushed the issue-16153-terminate-time-scheduler-shutdown branch from 24eb03a to f004897 Compare March 30, 2017 11:17
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Mar 30, 2017
@ferjm
ferjm requested a review from jdm March 30, 2017 11:18
@jdm

jdm commented Mar 30, 2017

Copy link
Copy Markdown
Member

Looks good. Squash and r=me!
@bors-servo: delegate+

@bors-servo

Copy link
Copy Markdown
Contributor

✌️ @ferjm can now approve this pull request

@jdm jdm added S-needs-squash Some (or all) of the commits in the PR should be combined. and removed S-awaiting-review There is new code that needs to be reviewed. labels Mar 30, 2017
@ferjm
ferjm force-pushed the issue-16153-terminate-time-scheduler-shutdown branch from f004897 to fb878f3 Compare March 30, 2017 12:28
@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Mar 30, 2017
@ferjm

ferjm commented Mar 30, 2017

Copy link
Copy Markdown
Contributor Author

Thank you Josh!

@bors-servo r=jdm

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit fb878f3 has been approved by jdm

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. S-needs-squash Some (or all) of the commits in the PR should be combined. labels Mar 30, 2017
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit fb878f3 with merge a3d9688...

bors-servo pushed a commit that referenced this pull request Mar 30, 2017
…tdown, r=jdm

Terminate timer scheduler thread during shutdown

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #16153

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16184)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-msvc-dev
Approved by: jdm
Pushing a3d9688 to master...

@bors-servo
bors-servo merged commit fb878f3 into servo:master Mar 30, 2017
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Mar 30, 2017
@ferjm
ferjm deleted the issue-16153-terminate-time-scheduler-shutdown branch March 30, 2017 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Terminate timer scheduler thread during shutdown

4 participants