diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-08-28 21:49:51 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-08-28 21:49:51 +0200 |
| commit | bcefd487c380b113d81ac066ea9b3b4b65e9efe7 (patch) | |
| tree | d225b725ddccaa8cce6205947c0dca2b551184f9 /compiler/rustc_query_impl/src/on_disk_cache.rs | |
| parent | 98007e2ce6f3731a935b0541d6ef63f292ef7ab9 (diff) | |
| download | rust-bcefd487c380b113d81ac066ea9b3b4b65e9efe7.tar.gz rust-bcefd487c380b113d81ac066ea9b3b4b65e9efe7.zip | |
Comment drop_serialized_data.
Diffstat (limited to 'compiler/rustc_query_impl/src/on_disk_cache.rs')
| -rw-r--r-- | compiler/rustc_query_impl/src/on_disk_cache.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/rustc_query_impl/src/on_disk_cache.rs b/compiler/rustc_query_impl/src/on_disk_cache.rs index c197962fabb..5c2803c67e7 100644 --- a/compiler/rustc_query_impl/src/on_disk_cache.rs +++ b/compiler/rustc_query_impl/src/on_disk_cache.rs @@ -246,6 +246,11 @@ impl<'sess> rustc_middle::ty::OnDiskCache<'sess> for OnDiskCache<'sess> { } } + /// Execute all cache promotions and release the serialized backing Mmap. + /// + /// Cache promotions require invoking queries, which needs to read the serialized data. + /// In order to serialize the new on-disk cache, the former on-disk cache file needs to be + /// deleted, hence we won't be able to refer to its memmapped data. fn drop_serialized_data(&self, tcx: TyCtxt<'tcx>) { // Register any dep nodes that we reused from the previous session, // but didn't `DepNode::construct` in this session. This ensures |
