Skip to content

Conversation

@qiongsiwu
Copy link

…lation 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)

…lation 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)
@qiongsiwu qiongsiwu requested a review from a team as a code owner December 15, 2025 19:14
@qiongsiwu
Copy link
Author

@swift-ci please test.

@qiongsiwu qiongsiwu changed the title [clang][Dependency Scanning] Move Module Timestamp Update After Compi… 🍒[clang][Dependency Scanning] Move Module Timestamp Update After Compi… Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants