-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[RemoteInspection] Change RemoteAbsolutePointer (NFC) #82325
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
base: main
Are you sure you want to change the base?
Conversation
test with swiftlang/llvm-project#10865 |
@@ -1871,7 +1871,7 @@ class TypeRefBuilder { | |||
if (auto symbol = OpaquePointerReader( | |||
remote::RemoteAddress(adjustedProtocolDescriptorTarget), | |||
PointerSize)) { | |||
if (!symbol->getSymbol().empty()) { | |||
if (!symbol->getSymbol().empty() && symbol->getOffset() == 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why must the offset be 0 in this case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the other comments the combination of Symbol+Offset isn't actually implemented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just took this for granted without further investigation, but given that the Offset is never taken here, it seems plausible.
This patch changes RemoteAbsolutePointer to store both the symbol and the resolved address. This allows us to retire some ugly workarounds to deal with non-symbolic addresses and it fixes code paths that would need these workarounds, but haven't implemented them yet (i.e., the pack shape handling in the symbolicReferenceResolver in MetadatyaReader. Addresses parts of rdar://146273066. rdar://153687085
test with swiftlang/llvm-project#10865 |
test with swiftlang/llvm-project#10865 |
test with swiftlang/llvm-project#10865 |
This patch changes RemoteAbsolutePointer to store both the symbol and the resolved address. This allows us to retire some ugly workarounds to deal with non-symbolic addresses and it fixes code paths that would need these workarounds, but haven't implemented them yet (i.e., the pack shape handling in the symbolicReferenceResolver in MetadataReader.
Addresses parts of rdar://146273066.
rdar://153687085