Skip to content

Read machO sections section by section #37092

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 28, 2021

Conversation

augusto2112
Copy link
Contributor

This changes how ReflectionContext reads machO reflection sections by reading them individually instead of as one big memory block spanning from the first to the last section (and including whatever else is in between). This change will enable an optimization on LLDB's side where, if we're reading read-only data, we read from the file-cache instead of the child process, which should speed up debugging when working with remote processes.

(cherry picked from commit b54d426)

@augusto2112
Copy link
Contributor Author

@adrian-prantl I merged the PR I opened last week (#37043) to main, since I didn't know we were supposed to work on release/5.5 now. This just cherry-picks those changes.

@augusto2112
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 0eca55cad18539cd1398d80d153070a000b19c74

This changes how ReflectionContext reads machO reflection sections by reading them individually instead of as one big memory block spanning from the first to the last section (and including whatever else is in between). This change will enable an optimization on LLDB's side where, if we're reading read-only data, we read from the file-cache instead of the child process, which should speed up debugging when working with remote processes.

(cherry picked from commit b54d426)
@augusto2112
Copy link
Contributor Author

Linux failing test:

18:28:17 Failed Tests (1):
18:28:17   Swift(linux-x86_64) :: AutoDiff/compiler_crashers_fixed/rdar71191415-nested-differentiation-of-extension-method-optimized.swift

I believe the failing test is unrelated to the changes on this commit, as they should only affect macOS.

@augusto2112
Copy link
Contributor Author

@swift-ci please test

@augusto2112 augusto2112 merged commit 8b8c159 into swiftlang:release/5.5 Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants