-
Notifications
You must be signed in to change notification settings - Fork 10.5k
stdlib: enable runtime checking for COW support by default in assert builds. #32385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stdlib: enable runtime checking for COW support by default in assert builds. #32385
Conversation
@swift-ci test |
Build failed |
@swift-ci clean test macOS |
Build failed |
797ccd4
to
6e7a30e
Compare
@swift-ci clean test |
Build failed |
6e7a30e
to
d4f6a0d
Compare
@swift-ci clean test |
1 similar comment
@swift-ci clean test |
Build failed |
Array literals only need to be finalized, if the array is really allocated. In case of zero elements, no allocation is done, but the empty-array singleton is used. "Finalization" means to emit an end_cow_mutation instruction on the array. As the empty-array singleton is a read-only and shared object, it's not legal to do a end_cow_mutation on it.
…builds. This was blocked by an LLDB problem, which is now fixed (swiftlang/llvm-project#1333)
d4f6a0d
to
bc27356
Compare
@swift-ci clean test |
Build failed |
Build failed |
This was blocked by an LLDB problem, which is now fixed (swiftlang/llvm-project#1333)
Also: fix a bug with array literal finalization (see commit message for details)