Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Ensure GCHeap related debugging still works even when we use newer CLRGC to target older runtimes #88457

Merged
merged 4 commits into from
Jul 13, 2023

Conversation

cshung
Copy link
Member

@cshung cshung commented Jul 6, 2023

This change makes sure GCHeap-related debugging still works even when we use newer CLRGC to target older runtimes by:

  • Placing all the newer fields at the end of GcDacVars and dac_gcheap, and
  • Making sure GC never populate fields that do not exist on older versions.

@cshung cshung requested a review from leculver July 6, 2023 03:14
@cshung cshung self-assigned this Jul 6, 2023
@ghost
Copy link

ghost commented Jul 6, 2023

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

Issue Details

This change makes sure GCHeap-related debugging still works even when we use newer CLRGC to target older runtimes by:

  • Placing all the newer fields at the end of GcDacVars and dac_gcheap, and
  • Making sure GC never populate fields that do not exist on older versions.
Author: cshung
Assignees: cshung
Labels:

area-Diagnostics-coreclr

Milestone: -

@cshung cshung marked this pull request as draft July 6, 2023 03:14
@cshung cshung force-pushed the public/fix-debug branch from 0ea15fe to 53ee1d7 Compare July 6, 2023 17:11
@cshung cshung marked this pull request as ready for review July 10, 2023 19:14
@cshung cshung requested review from noahfalk and removed request for leculver July 10, 2023 19:15
Copy link
Member

@noahfalk noahfalk left a comment

Choose a reason for hiding this comment

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

A few suggestions inline but LGTM.

fyi @dotnet/dotnet-diag

Co-authored-by: Noah Falk <noahfalk@users.noreply.github.com>
@mikem8361
Copy link
Member

Is this going to be merged? It would be nice if .NET 8 doesn't have this problem going forward.

Copy link
Member

@Maoni0 Maoni0 left a comment

Choose a reason for hiding this comment

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

:shipit:

@cshung cshung merged commit 4ee9eef into dotnet:main Jul 13, 2023
@cshung cshung deleted the public/fix-debug branch July 13, 2023 23:03
@ghost ghost locked as resolved and limited conversation to collaborators Aug 13, 2023
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants