Josh Stone
3d47ebeb0e
Simplify the signature of par_for_each_in
...
Given `T: IntoIterator`/`IntoParallelIterator`, `T::Item` is
unambiguous, so we don't need the explicit trait casting.
2020-02-26 15:08:21 -08:00
Mark Rousskov
a06baa56b9
Format the world
2019-12-22 17:42:47 -05:00
Mark Rousskov
7f00a5f26a
Revert "Auto merge of #67362 - Mark-Simulacrum:par-4-default, r=alexcrichton"
...
This reverts commit 3ed3b8bb7b , reversing
changes made to 99b89533d4 .
We will reland a similar patch at a future date but for now we should get a nightly
released in a few hours with the parallel patch, so this should be
reverted to make sure that the next nightly is not parallel-enabled.
2019-12-17 16:28:33 -05:00
Mark Rousskov
c0dbd9978f
Move AtomicU64 usage to AtomicUsize
2019-12-17 09:45:04 -05:00
Santiago Pastorino
18391b62f3
Fix outdated rustdoc of Once::init_locking function
2019-10-31 10:06:14 -03:00
Santiago Pastorino
12273cb7f6
Make init_locking return a reference to the initialized data
2019-10-30 18:35:54 -03:00
Nicholas Nethercote
ac6daed384
Remove many unnecessary trait derivations.
2019-10-21 20:59:18 +11:00
Santiago Pastorino
b9bc431bd2
Rename serial_join and serial_scope to join and scope
2019-10-14 18:05:07 -03:00
Santiago Pastorino
83560225ad
Move serial_scope and serial_join to parallel_compiler = false
2019-10-14 18:05:07 -03:00
Santiago Pastorino
068a8d163c
Minor comment tweaks
2019-10-14 18:05:07 -03:00
John Kåre Alsaker
498bdc9b42
Add an AtomicCell abstraction
2019-07-10 17:04:42 +02:00
John Kåre Alsaker
db9a1c1aaf
Add some comments
2019-03-06 04:47:08 +01:00
John Kåre Alsaker
7cc7b8f190
Execute all parallel blocks even if they panic in a single-threaded compiler
2019-03-06 04:47:08 +01:00
John Kåre Alsaker
d2923e5a77
Run the first block in a parallel! macro directly in the scope which guarantees that it will run immediately
2019-03-06 04:47:03 +01:00
Taiki Endo
3e2b5a4b08
librustc_data_structures => 2018
2019-02-09 01:36:22 +09:00
John Kåre Alsaker
38bcd4b42a
Move privacy checking later in the pipeline and make some passes run in parallel
2019-01-30 21:19:02 +01:00
John Kåre Alsaker
975eb312ef
Use multiple threads by default. Limits tests to one thread. Do some renaming.
2019-01-28 16:24:33 +01:00
John Kåre Alsaker
8ef7413f23
Optimize try_mark_green and eliminate the lock on dep node colors
2019-01-15 10:39:49 +01:00
bors
664c7797f6
Auto merge of #56614 - Zoxc:query-perf2, r=michaelwoerister
...
Replace LockCell with atomic types
Split from https://github.com/rust-lang/rust/pull/56509
r? @michaelwoerister
2019-01-09 11:08:14 +00:00
John Kåre Alsaker
75b2e143f1
Make CompileController thread-safe
2019-01-03 18:14:01 +01:00
John Kåre Alsaker
03b7cec2de
Replace LockCell with atomic types
2018-12-29 12:46:37 +01:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
Oliver Scherer
3c9258e604
Prefer Default::default over FxHash*::default in struct constructors
2018-10-19 14:34:44 +02:00
Mark Rousskov
9ec5ef541a
Breaking change upgrades
2018-09-04 13:22:08 -06:00
Matthias Krüger
71120ef1e5
Fix typos found by codespell.
2018-08-19 17:41:28 +02:00
ljedrz
6cfd49e8dd
add a missing dyn
2018-07-11 16:08:38 +02:00
ljedrz
ff65bbe96a
Deny bare trait objects in in src/librustc_data_structures
2018-07-11 13:58:27 +02:00
John Kåre Alsaker
8368f364e3
Add MTRef and a lock_mut function to MTLock
2018-06-19 03:19:50 +02:00
John Kåre Alsaker
77259af56a
Use try_lock in collect_active_jobs
2018-06-06 15:25:17 +02:00
John Kåre Alsaker
969296b79b
Add a WorkerLocal abstraction
2018-06-01 14:57:07 +02:00
John Kåre Alsaker
d6c63ec949
Fix OneThread
2018-06-01 14:55:54 +02:00
John Kåre Alsaker
28a11825de
Add parallel abstractions
2018-05-13 01:28:20 +02:00
John Kåre Alsaker
26f16e85ff
Add a Once type for values which are only written once
2018-04-10 14:39:33 +02:00
John Kåre Alsaker
60d0cbe532
Add insert_same extension to HashMap
2018-04-10 14:39:33 +02:00
John Kåre Alsaker
e5a602e364
Add OneThread which only allows its inner value to be used in one thread
2018-04-10 14:39:33 +02:00
John Kåre Alsaker
962a53d474
Add try_write to RwLock
2018-03-28 01:27:59 +02:00
John Kåre Alsaker
8e5eb025a2
Add an Default impl for Lock
2018-03-17 23:01:54 +01:00
John Kåre Alsaker
1dbc84d006
Remove rustc_global!
2018-03-17 23:01:53 +01:00
Manish Goregaokar
457975369b
Rollup merge of #48808 - Zoxc:reg-diag, r=michaelwoerister
...
Move REGISTERED_DIAGNOSTICS to a ParseSess field
r? @michaelwoerister
2018-03-08 11:26:02 -08:00
John Kåre Alsaker
2aa19feeb9
Add with_lock, with_read_lock and with_write_lock
2018-03-08 05:30:43 +01:00
John Kåre Alsaker
62089c335f
Make metadata references Send + Sync
2018-03-07 01:56:59 +01:00
John Kåre Alsaker
970c613e4a
Add sync module to rustc_data_structures
2017-12-17 14:14:51 +01:00