Skip to content

Commit 3946ce9

Browse files
committed
improve parallel-rustc.md
1 parent 4e291aa commit 3946ce9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/parallel-rustc.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ are implemented differently depending on whether `parallel-compiler` is true.
6464
or the authoring of persistent documentation covering the specific of the
6565
invariants, the atomicity, and the lock orderings.
6666

67-
- On the other hand, we still need to figure out what other invariants
67+
- On the other hand, we still need to figure out what other invariants
6868
during compilation might not hold in parallel compilation.
6969

7070
[`rustc_data_structures::sync`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_data_structures/sync/index.html
@@ -93,10 +93,10 @@ can be accessed directly through `Deref::deref`.
9393

9494
The parallel iterators provided by the [`rayon`] crate are easy ways to
9595
implement parallelism.
96-
In the current implementation of the parallel compiler
96+
In the current implementation of the parallel compiler,
9797
we use a custom [fork][rustc-rayon] of `rayon` to run tasks in parallel.
9898

99-
Some iterator functions are implemented to run loops in parallel
99+
Some iterator functions are implemented to run loops in parallel
100100
when `parallel-compiler` is true.
101101

102102
| Function(Omit `Send` and `Sync`) | Introduction | Owning Module |
@@ -154,8 +154,8 @@ When a query `foo` is evaluated, the cache table for `foo` is locked.
154154
**Cycle error detection** in the parallel
155155
compiler requires more complex logic than in single-threaded mode.
156156
When
157-
worker threads in parallel queries stop making progress due to interdependence,
158-
the compiler uses an extra thread *(named deadlock handler)* to detect, remove and
157+
worker threads in parallel queries stop making progress due to interdependence,
158+
the compiler uses an extra thread *(named deadlock handler)* to detect, remove and
159159
report the cycle error.
160160

161161
The parallel query feature still has implementation to do, most of which is

0 commit comments

Comments
 (0)