Commit Graph

13479 Commits

Author SHA1 Message Date
swift-ci
74b4e43bd7 Merge pull request #31334 from valeriyvan/StringUnicodeScalarView 2020-04-30 14:46:17 -07:00
swift-ci
4bf38a1eeb Merge pull request #31448 from valeriyvan/FixDocCommentCTypes 2020-04-30 14:43:07 -07:00
Valeriy Van
2d6313f919 Adds doc comment to internal func _memcpy in CTypes.swift 2020-04-30 21:48:00 +02:00
Valeriy Van
b90f996824 Fixes doc comment of func _memmove in CTypes.swift 2020-04-30 21:45:56 +02:00
swift-ci
62e5780c78 Merge pull request #31348 from valeriyvan/StringUTF16View 2020-04-30 12:36:08 -07:00
Robert Widmann
bb9a41ef2a Merge pull request #31405 from valeriyvan/FixSnippetsCharacterProperties
Fixes example snippets in CharacterProperties.swift
2020-04-30 10:33:48 -07:00
Saleem Abdulrasool
adaf0651f1 Merge pull request #31429 from compnerd/combase
Windows: add `combase` to the `WinSDK.core` module
2020-04-30 07:32:49 -07:00
Saleem Abdulrasool
904f6aa1ec Windows: add combase to the WinSDK.core module
Ensure that this header properly gets modularized into its own module.
2020-04-29 18:42:11 -07:00
Karoy Lorentey
bbe2f6e735 Merge pull request #31391 from lorentey/private-shims
[Darwin] Import all overlay shims with @_implementationOnly
2020-04-29 17:55:46 -07:00
Valeriy Van
d30661dace Fixes example snippets in CString.swift (#31407)
* Fixes example snippets in CString.swift

* Fixes example snippet in CString.swift
2020-04-29 16:43:27 -07:00
tbkka
70b3f01504 Reduce generics in Codable (#31278)
In particular, types generic on the CodingKey produce a lot of runtime metadata.
Reducing the number of such types should help with some of the reported memory
bloat from Codable.

Based on a suggestion of @jckarter

Resolves rdar://62620208
2020-04-29 15:23:26 -07:00
Valeriy Van
1ef6001bcd Fixes and unifies outputs of example snippets in CharacterProperties.swift as it was suggested in review to PR 2020-04-29 23:34:30 +02:00
Joe Groff
9cdfb0edfc Merge pull request #30560 from 3405691582/OpenBSD_StringStorage_AvoidMallocSize
[stdlib] Avoid malloc_size on OpenBSD.
2020-04-29 11:02:06 -07:00
Valeriy Van
e1e33b98a9 Fixes example snippets in CharacterProperties.swift 2020-04-29 19:11:15 +02:00
Karoy Lorentey
037e7f9bab [Darwin] Import all overlay shims with @_implementationOnly 2020-04-28 20:15:25 -07:00
Karoy Lorentey
057b27b31c [shims] Re-add Foundation shims removed in #28918
The current version of the Foundation overlay doesn’t use these, but we should still keep them in case a toolchain snapshot build picks up on overlay module from one of the SDKs in Xcode 11.

rdar://62339802
2020-04-28 15:44:33 -07:00
Karoy Lorentey
8f95fab13b [Foundation] Adjust stray public import of _SwiftFoundationOverlayShims 2020-04-28 15:40:36 -07:00
Valeriy Van
f434cbab05 Fixes example snippets in StringUTF16View.swift 2020-04-27 23:54:04 +02:00
3405691582
7830028f55 [stdlib] Avoid malloc_size on OpenBSD.
malloc introspection is a platform feature that is unavailable on
OpenBSD. There is no workaround for the feature, so we have to assume
that allocations succeed in allocating exactly the amount of memory
requested, and nothing more.

Here a new mallocSize shim is introduced so the feature check for malloc
introspection is pushed to the shims, rather than using os checks
directly from Swift. Not every use of malloc_size has been converted
yet; ManagedBuffer.swift still remains. However, this module requires
special care to fix, which will be done separately.
2020-04-27 15:52:37 -04:00
Valeriy Van
b0425a6cd8 Fixes example snippet 2020-04-26 22:08:27 +02:00
Saleem Abdulrasool
afe134eb2e Merge pull request #31328 from compnerd/winrpc
WinSDK: extract WinRPC into a module
2020-04-26 12:45:50 -07:00
Saleem Abdulrasool
15ce9a8c6b WinSDK: extract WinRPC into a module
Add a module representing RpcRT4.  This is needed for interfacing with
certain COM interfaces.
2020-04-26 10:25:41 -07:00
swift-ci
d7b5de95f3 Merge pull request #31321 from valeriyvan/SnippetsUnsafePointer 2020-04-25 19:02:45 -07:00
Valeriy Van
ad1c957b8d Fixes example snippets in UnsafePointer.swift 2020-04-25 22:51:37 +02:00
Valeriy Van
5e3dd58e14 Fixes snippets in UnsafeRawPointer.swift 2020-04-25 21:04:15 +02:00
Arnold Schwaighofer
6244a819c5 Merge pull request #31280 from aschwaighofer/revert_pr30024
Revert "Merge pull request #30024 from Azoy/calling-metadata-accessor…-from-swift"
2020-04-25 09:13:41 -07:00
Michael Ilseman
554cbdae17 Merge pull request #31239 from milseman/deconstring
[string] Add _deconstructUTF8 for internal usage
2020-04-24 14:55:31 -07:00
Joe Groff
de2a8b7305 Merge pull request #31256 from jckarter/backport-conformance-cache-51
Compatibility51: Backport the 5.2 implementation of the conformance cache.
2020-04-24 13:46:46 -07:00
Arnold Schwaighofer
048e78ef79 Revert "Merge pull request #30024 from Azoy/calling-metadata-accessor-from-swift!"
This reverts commit 5fd6e98b2f, reversing
changes made to 3aee49d9d0.

Revert "XFAIL test/Interpreter/metadata_access.swift on arm64e"

This reverts commit 8fe216b004.

Revert "XFAIl test on os stdlib bots"

This reverts commit aea5fa4842.
2020-04-24 12:28:24 -07:00
Michael Ilseman
249d2eeb2c [string] Add _deconstructUTF8 for internal usage
Add string deconstruction into contiguous UTF-8 (allocating if
needed).

Comments and docs to come soon, for now doing early testing.
2020-04-24 12:13:41 -07:00
Joe Groff
ca48939816 Compatibility51: Backport the 5.2 implementation of the conformance cache.
The runtime that shipped with Swift 5.1 and earlier had a bug that interfered with backward
deployment of binaries that dynamically check for protocol conformances on conditionally-available
tests. This was fixed in the top-of-tree Swift runtime by https://github.com/apple/swift/pull/29887;
however, that doesn't do much good for running binaries on older OSes that don't have that fix.
In order for binaries built with a newer Swift compiler to run successfully on older OSes,
introduce a compatibility hook that replaces the conformance cache implementation in the original
OS runtime with a version based on the current implementation that has the fix for the protocol
conformance bug. Fixes rdar://problem/59460603
2020-04-24 10:52:29 -07:00
Doug Gregor
94e9153878 Merge pull request #31170 from DougGregor/build-module-triples
[CMake] Use proper module triples for the names of standard library modules
2020-04-23 23:57:50 -07:00
nate-chandler
c9912c5964 Merge pull request #31056 from nate-chandler/generic-metadata-prespecialization-components/rdar61465515
[metadata prespecialization] Zero trailing flags field.
2020-04-23 20:39:42 -07:00
Nate Chandler
d87a734a50 [Runtime] In debug builds, dirty metadata records.
To facilitate debugging metadata records which are not properly
initialized, upon allocation fill them with a regular byte pattern
(0xAA) so that on subsequent inspection it is obvious if part of the
record is not initialized.
2020-04-23 18:18:40 -07:00
David Smith
a4d3261669 Merge pull request #31110 from Catfish-Man/tagged-too-two
Avoid losing the high bits of bridged constant tagged pointers
2020-04-23 12:07:22 -07:00
Valeriy Van
b6e46677e7 Fixes doc comment in UnsafeRawBufferPointer.swift.gyb 2020-04-23 18:45:00 +02:00
David Smith
220f0ccde8 Untag tagged constant NSString pointers before we wrap them, so BridgeObject doesn't stomp the high bits 2020-04-22 16:49:23 -07:00
Saleem Abdulrasool
66b4c9ae7b WinSDK: add some more constants to the overlay
The WinReg.h constants for the register hives are not imported through
the clang importer due to the complicated casting.  Duplicate the values
to allow usage in Swift.
2020-04-22 11:44:49 -07:00
marcrasi
4f3eab3aae fix _Differentiation rpath (#31183) 2020-04-21 15:30:37 -07:00
Doug Gregor
b27b4d4bb6 [CMake] Use proper module triples for the names of standard library modules.
The standard library (and other Swift modules built by our CMake build system)
has been building module files with an architecture only (e.g., x86_64.swiftmodule)
rather than a proper module triple (x86_86-apple-macosx10.15,
x86_64-apple-ios13.0-simulator, etc.), unlike every other build
system. There are hacks in the compiler and other tools to cope with
this unnecessary build difference. Fix the module file names so we'll
be able to remove the hacks later.

Fixes rdar://problem/49071536.
2020-04-20 21:16:14 -07:00
Robert Widmann
177bd245b2 Merge pull request #30702 from benrimmington/static-string-extensions
[stdlib] StaticString: extension per conformance
2020-04-20 09:58:06 -07:00
Saleem Abdulrasool
82cdf91512 Merge pull request #31033 from 3405691582/OpenBSD_Port_BuildfixDifferentiation
[stdlib] Buildfix differentiation for OpenBSD.
2020-04-20 08:12:50 -07:00
Saleem Abdulrasool
ea142dba02 Merge pull request #31123 from compnerd/gdi
Windows: add a WinGDI submodule
2020-04-19 08:11:05 -07:00
Daniel Rodríguez Troitiño
6f4455812b Merge pull request #30235 from buttaface/rpath
[build][android] set INSTALL_RPATH properly for shared libraries
2020-04-18 15:38:23 -07:00
Saleem Abdulrasool
6bad5a7bb3 Windows: add a WinGDI submodule
Extract the WinGDI into a submodule to handle the Gdi32 autolinking
requirement as well as to isolate the types.
2020-04-18 10:39:02 -07:00
Robert Widmann
45e833fc54 Merge pull request #31057 from 3405691582/OpenBSD_Port_CppIsCpp
[build] Set language flag for C++ on OpenBSD.
2020-04-17 20:47:47 -07:00
Joe Groff
948372b87c Merge pull request #31087 from jckarter/compatibility-51
Start a Compatibility51 library for backporting fixes to Swift 5.1 runtimes
2020-04-17 15:06:50 -07:00
Joe Groff
42514f42e0 Start a Compatibility51 library for backporting fixes to Swift 5.1 runtimes 2020-04-17 10:41:48 -07:00
Dmitri Gribenko
dcf119ba07 Merge pull request #31089 from MForster/fix-build-master
Fix master-next build (Part 1)
2020-04-17 19:11:14 +02:00
Hamish Knight
31f715dbda Merge pull request #31075 from hamishknight/temporary-coverage-issues
[stdlib] Add a couple of missing @_nonEphemeral attributes
2020-04-17 09:38:07 -07:00