Skip to content
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

[cdac] Implement GetObjectStringData #105061

Merged
merged 6 commits into from
Jul 19, 2024

Conversation

elinor-fung
Copy link
Member

  • Include String and Object in data descriptor
  • Start an Object contract for getting information about known managed objects
  • Make cDAC implement ISOSDacInterface::GetObjectStringData

Contributes to #99302

Copy link
Contributor

Tagging subscribers to this area: @tommcdon
See info in area-owners.md if you want to be subscribed.

string IObject.GetStringValue(TargetPointer address)
{
TargetPointer mt = GetMethodTableAddress(address);
if (mt != _stringMethodTable)
Copy link
Member Author

@elinor-fung elinor-fung Jul 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DAC also does DacValidateMethodTable (cDAC equivalent would be RuntimeTypeSystem.GetTypeHandle), but it seemed unnecessary since we check that it is the known string method table.

docs/design/datacontracts/Object.md Outdated Show resolved Hide resolved
Co-authored-by: Aleksey Kliger (λgeek) <[email protected]>
@elinor-fung elinor-fung merged commit 5fd965d into dotnet:main Jul 19, 2024
149 of 151 checks passed
@elinor-fung elinor-fung deleted the cdac-string-object branch July 19, 2024 13:25
@github-actions github-actions bot locked and limited conversation to collaborators Aug 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants