Commit bbc8589
committed
[CAS] sync memory mapped file when closing CAS
To avoid unnecessary data lost due to power lost immediately after the
build, make sure the mapped files in the CAS are sync'ed back to the
file system when the last user of the CAS closed the file.
rdar://150379440
(cherry picked from commit a67d9ef)1 parent 815013b commit bbc8589
File tree
3 files changed
+14
-1
lines changed- llvm/lib
- CAS
- Support
- Unix
- Windows
3 files changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
| |||
196 | 195 | | |
197 | 196 | | |
198 | 197 | | |
| 198 | + | |
| 199 | + | |
199 | 200 | | |
200 | 201 | | |
201 | 202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
876 | 876 | | |
877 | 877 | | |
878 | 878 | | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
879 | 885 | | |
880 | 886 | | |
881 | 887 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
1014 | 1020 | | |
1015 | 1021 | | |
1016 | 1022 | | |
| |||
0 commit comments