Skip to content

Improve/reimplement !listnearobj and !gcwhere - #3748

Merged
leculver merged 8 commits into
dotnet:mainfrom
leculver:lno
Mar 15, 2023
Merged

leculver merged 8 commits into
dotnet:mainfrom
leculver:lno

Conversation

@leculver

@leculver leculver commented Mar 14, 2023 •

Copy link
Copy Markdown
Contributor

Improve/reimplement !listnearobj and !gcwhere

Resolves #3566.

  • Pushed a lot of the logic out of !listnearobj. ClrMD now has heap walking capabilities which include skipping over corrupted objects when requested (setting carefully: true for EnumerateObjects/FindNext/FindPrevious).
  • !gcwhere/!listnearobj now accept more address ranges (e.g. you can give it a pointer to a segment's reserve range) and give more information. It also gives more information if we encounter weird behavior like overlapping segments.
  • !listnearobj is now MUCH more accurate when it tells you whether the local heap is consistent or corrupted.
  • Continued to remove dead code and delete GC logic out of C++ SOS so there's only one copy to update (ClrMD).

All tests passing, ready for review.

@leculver leculver added the enhancement New feature or request label Mar 14, 2023
@leculver leculver added this to the 8.0.0 milestone Mar 14, 2023
@leculver
leculver requested a review from mikem8361 March 14, 2023 18:57
@leculver
leculver requested a review from a team as a code owner March 14, 2023 18:57
@leculver
leculver merged commit f553dc6 into dotnet:main Mar 15, 2023
@leculver
leculver deleted the lno branch March 15, 2023 00:49
@hoyosjs hoyosjs mentioned this pull request Mar 29, 2023
@github-actions github-actions Bot locked and limited conversation to collaborators Jan 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

listnearobj can't confirm heap consistency with .NET 7

2 participants