about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-08-31 12:56:15 -0700
committerGitHub <noreply@github.com>2016-08-31 12:56:15 -0700
commit2c01bb885108c436adae2006632ff6dfc0a5f2cd (patch)
tree096e830596ea574c97955f2c2081974721399b96 /src/rustllvm/RustWrapper.cpp
parent7a187c39c79e21cd61d1688d449bdd52d7510281 (diff)
parentbcd2f905c46158f9137fa5b63aafebcb60083385 (diff)
downloadrust-2c01bb885108c436adae2006632ff6dfc0a5f2cd.tar.gz
rust-2c01bb885108c436adae2006632ff6dfc0a5f2cd.zip
Auto merge of #35718 - michaelwoerister:incr-comp-dir-locking, r=alexcrichton
Implement synchronization scheme for incr. comp. directory

This PR implements a copy-on-write-based synchronization scheme for the incremental compilation cache directory. For technical details, see the documentation at the beginning of `rustc_incremental/persist/fs.rs`.

The PR contains unit tests for some functions but for testing whether the scheme properly handles races, a more elaborate test setup would be needed. It would probably involve a small tool that allows to manipulate the incremental compilation directory in a controlled way and then letting a compiler instance run against directories in different states. I don't know if it's worth the trouble of adding another test category to `compiletest`, but I'd be happy to do so.

Fixes #32754
Fixes #34957
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions