Commit b6c62c7
authored
Fix data races in the method cache in free-threaded builds
These are technically data races, but I think they're benign (to
the extent that that is actually possible). We update cache entries
non-atomically but read them atomically from another thread, and there's
nothing that establishes a happens-before relationship between the
reads and writes that I can see.
1 parent deaecb8 commit b6c62c7
File tree
2 files changed
+5
-4
lines changed- Objects
- Tools/tsan
2 files changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4974 | 4974 | | |
4975 | 4975 | | |
4976 | 4976 | | |
4977 | | - | |
4978 | | - | |
| 4977 | + | |
| 4978 | + | |
4979 | 4979 | | |
4980 | 4980 | | |
4981 | 4981 | | |
4982 | 4982 | | |
4983 | | - | |
| 4983 | + | |
| 4984 | + | |
| 4985 | + | |
4984 | 4986 | | |
4985 | 4987 | | |
4986 | 4988 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | 50 | | |
0 commit comments