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

Fix build for DUMP_GC_TABLES defined in Release #79835

Merged
merged 2 commits into from
Dec 21, 2022

Conversation

BruceForstall
Copy link
Member

No description provided.

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Dec 19, 2022
@ghost ghost assigned BruceForstall Dec 19, 2022
@ghost
Copy link

ghost commented Dec 19, 2022

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

Issue Details

null

Author: BruceForstall
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@BruceForstall
Copy link
Member Author

This plus changing:

#define DUMP_GC_TABLES DEBUG

in jit.h allows building a Release JIT that dumps the GC info.

gcDump.gcPrintf = gcDump_logf; // use my printf (which logs to VM)
#else
gcDump.gcPrintf = printf;
Copy link
Member

Choose a reason for hiding this comment

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

Are you using jitstdout for release because of speed?

Copy link
Member Author

Choose a reason for hiding this comment

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

Enabling gcDump_logf to build when DEBUG is not defined but DUMP_GC_TABLES is defined seemed like more work, and possibly not necessary to achieve the goal, so I went for a simpler build fix.

@BruceForstall BruceForstall merged commit 279fb04 into dotnet:main Dec 21, 2022
@BruceForstall BruceForstall deleted the EnableReleaseDumpGcTables branch December 21, 2022 03:19
@ghost ghost locked as resolved and limited conversation to collaborators Jan 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants