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

Improve dumping GC info in R2RDump #44857

Merged
merged 1 commit into from
Nov 18, 2020

Conversation

AntonLapounov
Copy link
Member

@AntonLapounov AntonLapounov commented Nov 18, 2020

The --raw command-line option dumps bytes prefixed with their RVAs for all structures except GC blobs, which are dumped with file offsets. This PR fixes that inconsistency. It also fixes the size reported by x86.GcInfo, which determines how many bytes to dump. In addition, I simplified ReadyToRunMethod's code to store just the GC blob's RVA and avoid the delegate allocation.

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the area-R2RDump-coreclr Ready-to-run image dump tool label Nov 18, 2020
Copy link
Member

@cshung cshung left a comment

Choose a reason for hiding this comment

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

I liked it, thanks for the cleanup.

Copy link
Member

@trylek trylek left a comment

Choose a reason for hiding this comment

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

Looks great to me, thank you!

@AntonLapounov AntonLapounov merged commit 514079d into dotnet:master Nov 18, 2020
@AntonLapounov AntonLapounov deleted the ImproveDumpingGCInfo branch November 18, 2020 23:24
@ghost ghost locked as resolved and limited conversation to collaborators Dec 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-R2RDump-coreclr Ready-to-run image dump tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants