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] Resolve breaking change caused by removing ThunkHeap descriptor #113737

Merged
merged 5 commits into from
Mar 21, 2025

Conversation

max-charlamb
Copy link
Contributor

@max-charlamb max-charlamb commented Mar 20, 2025

#112460 removed m_pThunkHeap from Module and the associated datadescriptor.

This value is used in a single DAC api which was changed in the same PR.

Modified cDAC api to match new DAC api.

This is a breaking change and could be fixed with a new contract version. However, I think we can ignore this field given the cDAC hasn't really shipped yet.

@Copilot Copilot bot review requested due to automatic review settings March 20, 2025 17:02
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request adapts the cDAC API to match recent changes in the DAC API by removing the ThunkHeap descriptor.

  • Removed ThunkHeap field and property from Module.cs
  • Removed the ILoader.GetThunkHeap method from Loader_1.cs
  • Updated test descriptors in MockDescriptors.cs to remove the ThunkHeap definition

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/native/managed/cdacreader/Microsoft.Diagnostics.DataContractReader.Contracts/Data/Module.cs Removed the ThunkHeap initialization and property as per the new DAC API
src/native/managed/cdacreader/Microsoft.Diagnostics.DataContractReader.Contracts/Contracts/Loader_1.cs Removed the ILoader.GetThunkHeap method which was no longer needed
src/native/managed/cdacreader/tests/MockDescriptors/MockDescriptors.cs Removed the ThunkHeap descriptor from the type field definitions for consistency with the updated API

Copy link
Contributor

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

Copy link
Member

@davmason davmason left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants