Skip to content

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.

Co-authored-by: Aleksey Kliger (λgeek) <[email protected]>
@elinor-fung elinor-fung merged commit 5fd965d into dotnet:main Jul 19, 2024
@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