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

Let the debugger knows DATAS is on #107115

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cshung
Copy link
Member

@cshung cshung commented Aug 28, 2024

It would be nice if the debugger (e.g. !eeheap) can tell us if DATAS is on.

Right now, IsDatasEnabled is not called by anyone, yet.

@cshung cshung self-assigned this Aug 28, 2024
Copy link
Contributor

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

@@ -113,6 +113,11 @@ inline bool IsBackgroundGCEnabled()
return (g_gcDacGlobals->minor_version_number & 2) == 0;
}

inline bool IsDatasEnabled()
{
return (g_gcDacGlobals->minor_version_number & 4) == 0;
Copy link
Member

Choose a reason for hiding this comment

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

should 4 be defined as a constant somewhere? Same for other constants above actually.

Copy link
Member

Choose a reason for hiding this comment

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

It is a questionable practice to overload version number to mean something else. Should this rather be a new variable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants