File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -1143,3 +1143,9 @@ Removed: _$sSS10_wordIndex6beforeSS0B0VAD_tF
11431143// Internal info exposed for swift-inspect.
11441144Added: __swift_debug_allocationPoolSize
11451145Added: __swift_debug_metadataAllocatorPageSize
1146+
1147+ // New symbols to support emit-into-client retain/release.
1148+ Added: __swift_retainRelease_slowpath_mask_v1
1149+ Added: _swift_release_preservemost
1150+ Added: _swift_release_preservemost_weak_placeholder
1151+ Added: _swift_retain_preservemost
Original file line number Diff line number Diff line change 1- // Ensure that we do not export any weak symbols from the dylibs.
1+ // Ensure that we do not export any unwanted weak symbols from the dylibs.
22//
33// Weak symbols require additional work from the loader to resolve the symbol at
44// load time and can cause ODR violations as well as unexpected symbol
55// satisfaction because the weak symbol may be used from a separate module.
6+ //
7+ // The _swift_release_preservemost_weak_placeholder symbol is present to allow
8+ // strong symbols from swiftCore to override weak symbols in other libraries,
9+ // to allow back-deployment usage of the swift_retain_preservemost and
10+ // swift_release_preservemost entrypoints.
611
712// RUN: %empty-directory(%t)
813
914// RUN: %llvm-nm --defined-only --extern-only --demangle %platform-dylib-dir/%target-library-name(swiftCore) > %t/swiftCore-all.txt
1015// RUN: %llvm-nm --defined-only --extern-only --no-weak --demangle %platform-dylib-dir/%target-library-name(swiftCore) > %t/swiftCore-no-weak.txt
11- // RUN: diff -u %t/swiftCore-all.txt %t/swiftCore-no-weak.txt
16+ // RUN: grep -v _swift_release_preservemost_weak_placeholder < %t/swiftCore-all.txt > %t/swiftCore-all-filtered.txt
17+ // RUN: diff -u %t/swiftCore-all-filtered.txt %t/swiftCore-no-weak.txt
1218
1319// RUN: %llvm-nm --defined-only --extern-only --demangle %platform-dylib-dir/%target-library-name(swiftRemoteMirror) > %t/swiftRemoteMirror-all.txt
1420// RUN: %llvm-nm --defined-only --extern-only --no-weak --demangle %platform-dylib-dir/%target-library-name(swiftRemoteMirror) > %t/swiftRemoteMirror-no-weak.txt
You can’t perform that action at this time.
0 commit comments