diff options
| author | bors <bors@rust-lang.org> | 2021-09-06 23:58:16 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-09-06 23:58:16 +0000 |
| commit | 11bbb5231349a0a144d86d5c0c21061a06d1969d (patch) | |
| tree | 70bcc7e4fddcbc40043ae83f99c9955dce8a8f55 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | 1698e3cac54aa8691d4e9e207567672af8231cb6 (diff) | |
| parent | bcefd487c380b113d81ac066ea9b3b4b65e9efe7 (diff) | |
| download | rust-11bbb5231349a0a144d86d5c0c21061a06d1969d.tar.gz rust-11bbb5231349a0a144d86d5c0c21061a06d1969d.zip | |
Auto merge of #83214 - cjgillot:dep-map, r=michaelwoerister
Mmap the incremental data instead of reading it. Instead of reading the full incremental state using `fs::read_file`, we memmap it using a private read-only file-backed map. This allows the system to reclaim any memory we are not using, while ensuring we are not polluted by outside modifications to the file. Suggested in https://github.com/rust-lang/rust/pull/83036#issuecomment-800458082 by `@bjorn3`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
