Skip to content

Conversation

@cshung
Copy link
Contributor

@cshung cshung commented Aug 23, 2021

Fix #57960

This fixes a few things:

  • The fields corresponding to the dac_gc_heap are no longer guaranteed to be matching the target, in fact, the fields are no longer contiguous, therefore we need to call DacEnumMemoryRegion on individual fields separately.
  • Same applies to dac_generation.
  • We also want the POH segments.
  • We also want to make sure it works under regions.

The arguments passed into DacEnumMemoryRegion should correspond to the right target addresses.
Beyond manual inspection, is there something we can run to make sure this is correct?

@ghost
Copy link

ghost commented Aug 23, 2021

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

Issue Details

Fix #57960

Author: cshung
Assignees: -
Labels:

area-System.Diagnostics

Milestone: -

@cshung cshung requested a review from mikem8361 August 23, 2021 23:03
Copy link
Contributor

@mikem8361 mikem8361 left a comment

Choose a reason for hiding this comment

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

Looks good. I built/ran your changes under the SOS tests on Windows and Linux and everything passes.

We will need to backport to rc2 (release/6.0).

@cshung cshung changed the title [WIP] Fix enum memory code paths Fix enum memory code paths Aug 24, 2021
@mikem8361
Copy link
Contributor

@cshung is there anything else needed before merging this PR?

@cshung
Copy link
Contributor Author

cshung commented Aug 24, 2021

I am working on testing it under USE_REGIONS. I have found a bug and fixed it, please take a look again.

Copy link
Contributor

@mikem8361 mikem8361 left a comment

Choose a reason for hiding this comment

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

Looks good. Ran the SOS tests again on Windows and Linux.

@cshung cshung merged commit 7571649 into dotnet:main Aug 24, 2021
@cshung cshung deleted the public/fix-enumeration branch August 24, 2021 21:14
@mikem8361
Copy link
Contributor

/backport release/6.0

@mikem8361
Copy link
Contributor

/backport to release/6.0

@github-actions
Copy link
Contributor

Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1164449928

@ghost ghost locked as resolved and limited conversation to collaborators Sep 23, 2021
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.

Dump generation for the server GC apps failure

2 participants