Skip to content

[Runtime] Disable prespecialized metadata if we have overridden images. #72873

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

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

al45tair
Copy link
Contributor

@al45tair al45tair commented Apr 5, 2024

We need to check for overridden images on every image load, otherwise XCTest (among others) may dlopen() an image that pulls in something that is overridden, at which point the prespecialized metadata won't match the image we loaded.

rdar://125727356

We need to check for overridden images on every image load, otherwise
XCTest (among others) may `dlopen()` an image that pulls in something
that is overridden, at which point the prespecialized metadata won't
match the image we loaded.

rdar://125727356
@al45tair al45tair added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.0 labels Apr 5, 2024
@al45tair al45tair requested a review from a team as a code owner April 5, 2024 17:04
@al45tair
Copy link
Contributor Author

al45tair commented Apr 5, 2024

Explanation: We need to turn off prespecialized metadata if we've overridden an image in the shared cache.
Original PR: #72833
Reviewed by: @mikeash
Risk: Low. Disabling prespecialized metadata just reverts us to the original code path.
Resolves: rdar://125727356
Tests: We don't have a specific test for this.

@al45tair
Copy link
Contributor Author

al45tair commented Apr 5, 2024

@swift-ci Please test

@al45tair
Copy link
Contributor Author

al45tair commented Apr 8, 2024

@swift-ci Please test macOS platform

@al45tair al45tair merged commit b4b7baa into swiftlang:release/6.0 Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants