mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
Comment drop_serialized_data.
This commit is contained in:
parent
98007e2ce6
commit
bcefd487c3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user