Skip to content
Unverified Commit 14882d6b authored by Alexander Richardson's avatar Alexander Richardson Committed by GitHub
Browse files

[libc++][lit] Atomically update the persistent cache (#66538)

When running multiple shards in parallel, one shard might write to the
cache while another one is reading this cache. Instead of updating the
file in place, write to a temporary file and swap the cache file using
os.replace(). This is an atomic operation and means shards will either
see the old state or the new one.
parent 6a45339b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment