Skip to content

Scheduler + I/O - #7265

Closed
brson wants to merge 128 commits into
rust-lang:masterfrom
brson:io-upstream
Closed

brson wants to merge 128 commits into
rust-lang:masterfrom
brson:io-upstream

Conversation

@brson

@brson brson commented Jun 20, 2013

Copy link
Copy Markdown
Contributor

r? @graydon, @nikomatsakis, @pcwalton, or @catamorphism

Sorry this is so huge, but it's been accumulating for about a month. There's lots of stuff here, mostly oriented toward enabling multithreaded scheduling and improving compatibility between the old and new runtimes. Adds task pinning so that we can create the 'platform thread' in servo.

Here is the current runtime setup code.

About half of this has already been reviewed.

brson and others added 30 commits May 20, 2013 16:43
This is used for signalling the event loop from other threads.
This will be for implementing a work-sharing strategy
Just a simple place to stuff handles to sleeping schedulers.
Conflicts:
	src/libstd/rt/comm.rs
brson and others added 6 commits July 2, 2013 15:50
Conflicts:
	src/libstd/rt/sched.rs
Conflicts:
	src/libstd/rt/test.rs
	src/rt/rustrt.def.in
Conflicts:
	src/libextra/test.rs
	src/libstd/at_vec.rs
	src/libstd/cleanup.rs
	src/libstd/rt/comm.rs
	src/libstd/rt/global_heap.rs
	src/libstd/task/spawn.rs
	src/libstd/unstable/lang.rs
	src/libstd/vec.rs
	src/rt/rustrt.def.in
	src/test/run-pass/extern-pub.rs
@bblum

bblum commented Jul 4, 2013

Copy link
Copy Markdown
Contributor

uv/uvio.rs has the following redundant cell:

313         let incoming_streams_cell = Cell::new(self.incoming_streams.clone());
314 
315         let incoming_streams_cell = Cell::new(incoming_streams_cell.take());

bors added a commit that referenced this pull request Jul 10, 2013
r? @graydon, @nikomatsakis, @pcwalton, or @catamorphism

Sorry this is so huge, but it's been accumulating for about a month. There's lots of stuff here, mostly oriented toward enabling multithreaded scheduling and improving compatibility between the old and new runtimes. Adds task pinning so that we can create the 'platform thread' in servo.

[Here](https://github.com/brson/rust/blob/e1555f9b5628af2b6c6ed344cad621399cb7684d/src/libstd/rt/mod.rs#L201) is the current runtime setup code.

About half of this has already been reviewed.
@bors bors closed this Jul 10, 2013
@graydon

graydon commented Jul 10, 2013

Copy link
Copy Markdown
Contributor

Woo!

@graydon

graydon commented Jul 10, 2013

Copy link
Copy Markdown
Contributor

🍰

@bblum

bblum commented Jul 10, 2013

Copy link
Copy Markdown
Contributor

The SharedPort::try_recv implementation wants some heavy commenting. I like it, but I had to puzzle over it for a while to figure out all the cases.

flip1995 pushed a commit to flip1995/rust that referenced this pull request Jun 3, 2021
Add lint `manual_str_repeat`

fixes: rust-lang#7260

There's a similar function for slices. Should this be renamed to include it, or should that be a separate lint? If we are going to have them as one lint a better name will be needed. `manual_repeat` isn't exactly clear as it's replacing a call to `iter::repeat`.

changelog: Add new lint `manual_str_repeat`
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
7265: Add a test for rust-lang#7110 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <[email protected]>
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.

10 participants