Clear up meaning of MayEscape
& Distinguish a local becoming reachable via globals from being reachable by other threads
#1544
Labels
We make inconsistent assumptions about what "has escaped" is supposed to mean:
Escape analysis for thread-local variables ([escape]).
45/05
to fail which requiresMayEscape
to answer true also in single-threaded settings.I came across this when considering #1542, where this distinction leads to a new global variable being created when reading to
g#in
that has not received any values as the value of the variable is still tracked locally.The text was updated successfully, but these errors were encountered: