You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove Stubs.cpp and reimplement what it has in Swift. (#929)
This PR removes Stubs.cpp, which currently houses some thunks for
functions that are conditionally unavailable in glibc, and replaces it
with runtime function lookups in Swift. Is there potentially a one-time
non-zero performance cost? Yes. Is that performance cost prohibitive
given that the functions are only looked up once and then cached? No.
These functions won't get called on Linux if `SWT_NO_DYNAMIC_LINKING` is
defined but we don't currently support that combination anyway. Even if
you're using a statically-linked Swift standard library, we'd expect
Linux to still support calling `dlsym()`.
### Checklist:
- [x] Code and documentation should follow the style of the [Style
Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [x] If public symbols are renamed or modified, DocC references should
be updated.
0 commit comments