forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Exclusivity] Use dynamic enforcement on boxes whose projections escape
In AccessEnforcementSelection, treat passing a projection from a box to a partial_apply as an escape to force using dynamic enforcement on the box. This will now correctly use dynamic enforcement on variables that are taken as inout and also captured by storage address in a closure: var x = ... x.mutatingMethod { ... use x ...} but does pessimize some of our existing enforcement into dynamic since access enforcement selection. Ideally we would distinguish between escaping via an nonescaping closures (which can only conflict with accesses that are in progress) and escaping via escaping closures (which can conflict for any reachable code after the escape)
- Loading branch information
1 parent
719c8ff
commit de9c646
Showing
4 changed files
with
164 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters