Commit f70e921
committed
[Concurrency] Improve data-race detection for locals and globals
Improve data-race detection for local variables and global/static variables
* Only diagnose these cases at all, not (e.g.) class instance members
* For local functions, they run concurrently if they were referenced somewhere
that runs concurrently
The latter required moving checking of both actor isolation and effects
for local functions to the point at which their enclosing (non-local)
functions are checked, because we need to reason about the
type-checked bodies of local functions.1 parent f694cfb commit f70e921
File tree
5 files changed
+351
-67
lines changed- lib/Sema
- test/Concurrency
5 files changed
+351
-67
lines changed
0 commit comments