Skip to content

Add logging callback to DAC EnumMemoryRegion API - #73599

Merged
mikem8361 merged 6 commits into
dotnet:mainfrom
mikem8361:enummemlogging
Aug 11, 2022
Merged

mikem8361 merged 6 commits into
dotnet:mainfrom
mikem8361:enummemlogging

Conversation

@mikem8361

Copy link
Copy Markdown
Contributor

Add the ICLRDataEnumMemoryRegionsLoggingCallback interface so createdump can receive logging from the EnumMemoryRegion API.

Add logging to MethodTable EnumMemoryRegion for invalid EEClass/Canonical MT.

Add checked build logging after waitpid for createdump to help diagnose issue #72755.

Mike McLaughlin added 2 commits August 8, 2022 13:48
Add the ICLRDataEnumMemoryRegionsLoggingCallback interface so createdump can receive logging from the EnumMemoryRegion API.

Add logging to MethodTable EnumMemoryRegion for invalid EEClass/Canonical MT.
@mikem8361
mikem8361 requested a review from hoyosjs August 8, 2022 23:40
@mikem8361 mikem8361 self-assigned this Aug 8, 2022
@ghost

ghost commented Aug 8, 2022

Copy link
Copy Markdown

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

Issue Details

Add the ICLRDataEnumMemoryRegionsLoggingCallback interface so createdump can receive logging from the EnumMemoryRegion API.

Add logging to MethodTable EnumMemoryRegion for invalid EEClass/Canonical MT.

Add checked build logging after waitpid for createdump to help diagnose issue #72755.

Author: mikem8361
Assignees: mikem8361
Labels:

area-Diagnostics-coreclr

Milestone: -

@mikem8361
mikem8361 requested a review from noahfalk August 9, 2022 03:55
@mikem8361

Copy link
Copy Markdown
Contributor Author

@noahfalk, @hoyosjs I would like to get this PR in before the end of the week.

@noahfalk noahfalk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM aside from some small naming suggestions

Comment thread src/coreclr/vm/threads.cpp Resolved
Comment thread src/coreclr/debug/daccess/dacimpl.h Resolved
Comment thread src/coreclr/pal/prebuilt/inc/clrdata.h Resolved
Mike McLaughlin and others added 2 commits August 10, 2022 15:14
Code review.

Co-authored-by: Juan Hoyos <[email protected]>
@mikem8361
mikem8361 merged commit 7be3790 into dotnet:main Aug 11, 2022
@mikem8361
mikem8361 deleted the enummemlogging branch August 11, 2022 04:03
@ghost ghost locked as resolved and limited conversation to collaborators Sep 10, 2022
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.

3 participants