Skip to content

script: Split Pipeline::create into chrome process and content process parts. - #6618

Merged
bors-servo merged 2 commits into
servo:masterfrom
pcwalton:content-process-code-shuffling
Jul 15, 2015
Merged

bors-servo merged 2 commits into
servo:masterfrom
pcwalton:content-process-code-shuffling

Conversation

@pcwalton

Copy link
Copy Markdown
Contributor

This will make it easier to adapt to IPC.

The trickiest part here was to make script tasks spawn new layout tasks
directly instead of having the pipeline do it for them. The latter
approach will not work in multiprocess mode, because layout and script
must run in the same address space and the pipeline cannot inject tasks
into another process.

r? @larsbergstrom

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 14, 2015
@hoppipolla-critic-bot

Copy link
Copy Markdown

Critic review: https://critic.hoppipolla.co.uk/r/5544

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

@larsbergstrom

Copy link
Copy Markdown
Contributor

Reviewed 11 of 11 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks failed.


Comments from the review on Reviewable.io

@larsbergstrom

Copy link
Copy Markdown
Contributor

@bors-servo: r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 4481509 has been approved by larsbergstrom

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 4481509 with merge 01502c0...

bors-servo pushed a commit that referenced this pull request Jul 14, 2015
…bergstrom

script: Split `Pipeline::create` into chrome process and content process parts.

This will make it easier to adapt to IPC.

The trickiest part here was to make script tasks spawn new layout tasks
directly instead of having the pipeline do it for them. The latter
approach will not work in multiprocess mode, because layout and script
must run in the same address space and the pipeline cannot inject tasks
into another process.

r? @larsbergstrom

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6618)
<!-- Reviewable:end -->
@larsbergstrom

Copy link
Copy Markdown
Contributor
4.84s$ ./mach test-tidy

components/compositing/pipeline.rs:271: trailing whitespace

components/compositing/pipeline.rs:278: trailing whitespace

Fix then r=me

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - linux1

@jdm jdm added S-fails-tidy `./mach test-tidy` reported errors. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jul 14, 2015
@pcwalton
pcwalton force-pushed the content-process-code-shuffling branch from 4481509 to 401a3d8 Compare July 14, 2015 15:42
@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 14, 2015
@pcwalton

Copy link
Copy Markdown
Contributor Author

@bors-servo: r=larsbergstrom

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 401a3d8 has been approved by larsbergstrom

@jdm jdm 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-fails-tidy `./mach test-tidy` reported errors. labels Jul 14, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 401a3d8 with merge 477937c...

bors-servo pushed a commit that referenced this pull request Jul 14, 2015
…bergstrom

script: Split `Pipeline::create` into chrome process and content process parts.

This will make it easier to adapt to IPC.

The trickiest part here was to make script tasks spawn new layout tasks
directly instead of having the pipeline do it for them. The latter
approach will not work in multiprocess mode, because layout and script
must run in the same address space and the pipeline cannot inject tasks
into another process.

r? @larsbergstrom

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6618)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac1

@jdm jdm added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Jul 14, 2015
process parts.

This will make it easier to adapt to IPC.

The trickiest part here was to make script tasks spawn new layout tasks
directly instead of having the pipeline do it for them. The latter
approach will not work in multiprocess mode, because layout and script
must run in the same address space and the pipeline cannot inject tasks
into another process.
@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #6626) made this pull request unmergeable. Please resolve the merge conflicts.

iframe case instead of creating a new one.

Fixes test timeouts.
@pcwalton
pcwalton force-pushed the content-process-code-shuffling branch from 401a3d8 to c2195c4 Compare July 14, 2015 22:28
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Jul 14, 2015
@pcwalton

Copy link
Copy Markdown
Contributor Author

Should fix the timeouts. r? @larsbergstrom

@larsbergstrom

Copy link
Copy Markdown
Contributor

Reviewed 1 of 11 files at r1, 11 of 11 files at r2.
Review status: :shipit: all files reviewed at latest revision, all discussions resolved, all commit checks successful.


Comments from the review on Reviewable.io

@larsbergstrom

Copy link
Copy Markdown
Contributor

@bors-servo: r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit c2195c4 has been approved by larsbergstrom

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit c2195c4 with merge e06eaa0...

bors-servo pushed a commit that referenced this pull request Jul 15, 2015
…bergstrom

script: Split `Pipeline::create` into chrome process and content process parts.

This will make it easier to adapt to IPC.

The trickiest part here was to make script tasks spawn new layout tasks
directly instead of having the pipeline do it for them. The latter
approach will not work in multiprocess mode, because layout and script
must run in the same address space and the pipeline cannot inject tasks
into another process.

r? @larsbergstrom

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6618)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux1, linux2, linux3, mac1, mac2, mac3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-review There is new code that needs to be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants