Skip to content

Commit 1a6c165

Browse files
authored
Merge pull request swiftlang#20488 from atrick/changelog
ChangeLog addition: SR-7139: Support enforcement of exclusive memory
2 parents 04aeaca + cd83a5f commit 1a6c165

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,20 @@ CHANGELOG
2424
Swift 5.0
2525
---------
2626

27+
* [SR-7139][]:
28+
29+
Exclusive memory access is now enforced at runtime by default in
30+
optimized (`-O`/`-Osize`) builds. Programs that violate exclusivity will
31+
trap at runtime with an "overlapping access" diagnostic
32+
message. This can be disabled via a command line flag:
33+
`-enforce-exclusivity=unchecked`, but doing so may result in undefined
34+
behavior.
35+
36+
Runtime violations of exclusivity typically result from
37+
simultaneous access of class properties, global variables (including
38+
variables in top-level code), or variables captured by escaping
39+
closures.
40+
2741
* [SE-0216][]:
2842

2943
The `@dynamicCallable` attribute enables nominal types to be "callable" via a
@@ -7290,4 +7304,5 @@ Swift 1.0
72907304
[SR-2394]: <https://bugs.swift.org/browse/SR-2394>
72917305
[SR-2608]: <https://bugs.swift.org/browse/SR-2608>
72927306
[SR-4248]: <https://bugs.swift.org/browse/SR-4248>
7307+
[SR-7139]: <https://bugs.swift.org/browse/SR-7139>
72937308
[SR-7251]: <https://bugs.swift.org/browse/SR-7251>

0 commit comments

Comments
 (0)