diff options
| author | bors <bors@rust-lang.org> | 2025-05-07 12:39:54 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-05-07 12:39:54 +0000 |
| commit | 3ef8e64ce9f72ee8d600d55bc43b36eed069b252 (patch) | |
| tree | cf639e3304553d2337a536af3d4d3a662cfed9be /compiler/rustc_incremental | |
| parent | db0e836148accac8a22532e3596ac612b63c2d8e (diff) | |
| parent | cdd104922df2cc62a0e82ba865d4cdc6a217090e (diff) | |
| download | rust-3ef8e64ce9f72ee8d600d55bc43b36eed069b252.tar.gz rust-3ef8e64ce9f72ee8d600d55bc43b36eed069b252.zip | |
Auto merge of #139758 - Zoxc:thread-local-graph, r=oli-obk
Use thread local dep graph encoding This adds thread local encoding of dep graph nodes. Each thread has a `MemEncoder` that gets flushed to the global `FileEncoder` when it exceeds 64 kB. Each thread also has a local cache of dep indices. This means there can now be empty gaps in `SerializedDepGraph`. Indices are marked green and also allocated by the new atomic operation `DepNodeColorMap::try_mark_green` as the encoder lock is removed.
Diffstat (limited to 'compiler/rustc_incremental')
| -rw-r--r-- | compiler/rustc_incremental/src/persist/save.rs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/compiler/rustc_incremental/src/persist/save.rs b/compiler/rustc_incremental/src/persist/save.rs index 94ce6d9fa81..58fea3278a8 100644 --- a/compiler/rustc_incremental/src/persist/save.rs +++ b/compiler/rustc_incremental/src/persist/save.rs @@ -44,10 +44,6 @@ pub(crate) fn save_dep_graph(tcx: TyCtxt<'_>) { sess.time("assert_dep_graph", || assert_dep_graph(tcx)); sess.time("check_dirty_clean", || dirty_clean::check_dirty_clean_annotations(tcx)); - if sess.opts.unstable_opts.incremental_info { - tcx.dep_graph.print_incremental_info() - } - join( move || { sess.time("incr_comp_persist_dep_graph", || { @@ -172,12 +168,5 @@ pub(crate) fn build_dep_graph( // First encode the commandline arguments hash sess.opts.dep_tracking_hash(false).encode(&mut encoder); - Some(DepGraph::new( - sess, - prev_graph, - prev_work_products, - encoder, - sess.opts.unstable_opts.query_dep_graph, - sess.opts.unstable_opts.incremental_info, - )) + Some(DepGraph::new(sess, prev_graph, prev_work_products, encoder)) } |
