Commit bfee42c
[clang][Dependency Scanning] Move Module Timestamp Update After Compilation Finishes (llvm#151774)
When two threads are accessing the same `pcm`, it is possible that the
reading thread sees the timestamp update, while the file on disk is not
updated.
This PR moves timestamp update from `writeAST` to
`compileModuleAndReadASTImpl`, so we only update the timestamp after the
file has been committed to disk.
rdar://152097193
(cherry picked from commit 09dbdf6)1 parent 9784760 commit bfee42c
File tree
2 files changed
+8
-5
lines changed- clang/lib
- Frontend
- Serialization
2 files changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1617 | 1617 | | |
1618 | 1618 | | |
1619 | 1619 | | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
1620 | 1628 | | |
1621 | 1629 | | |
1622 | 1630 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5031 | 5031 | | |
5032 | 5032 | | |
5033 | 5033 | | |
5034 | | - | |
5035 | | - | |
5036 | | - | |
5037 | | - | |
5038 | | - | |
5039 | 5034 | | |
5040 | 5035 | | |
5041 | 5036 | | |
| |||
0 commit comments