Commit 9ef24c2
Make compilecache atomic (#36416)
When several Julia processes compile the same package concurrently
(e.g. during a cluster run), they can conflict on the compile cache
file. This change makes a Julia process create a compile cache in a
temporary file and atomically rename it to the final cache file.
Co-authored-by: Takafumi Arakaki <tkf@@users.noreply.github.com>
(cherry picked from commit 3bbb582)1 parent f557436 commit 9ef24c2
3 files changed
+42
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1256 | 1256 | | |
1257 | 1257 | | |
1258 | 1258 | | |
| 1259 | + | |
1259 | 1260 | | |
1260 | 1261 | | |
1261 | | - | |
1262 | 1262 | | |
1263 | 1263 | | |
1264 | 1264 | | |
| |||
1276 | 1276 | | |
1277 | 1277 | | |
1278 | 1278 | | |
1279 | | - | |
1280 | | - | |
1281 | | - | |
1282 | | - | |
1283 | | - | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
1284 | 1298 | | |
1285 | | - | |
1286 | | - | |
1287 | | - | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
1288 | 1303 | | |
1289 | 1304 | | |
1290 | 1305 | | |
1291 | 1306 | | |
1292 | | - | |
1293 | 1307 | | |
1294 | 1308 | | |
1295 | 1309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
935 | 935 | | |
936 | 936 | | |
937 | 937 | | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
938 | 954 | | |
939 | 955 | | |
940 | 956 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2837 | 2837 | | |
2838 | 2838 | | |
2839 | 2839 | | |
2840 | | - | |
2841 | 2840 | | |
2842 | 2841 | | |
2843 | | - | |
2844 | | - | |
| 2842 | + | |
| 2843 | + | |
2845 | 2844 | | |
2846 | 2845 | | |
2847 | 2846 | | |
| |||
2955 | 2954 | | |
2956 | 2955 | | |
2957 | 2956 | | |
2958 | | - | |
2959 | 2957 | | |
2960 | | - | |
2961 | | - | |
2962 | | - | |
2963 | | - | |
2964 | 2958 | | |
2965 | 2959 | | |
2966 | 2960 | | |
| |||
0 commit comments