Skip to content

Conversation

@t-mustafin
Copy link
Contributor

@t-mustafin t-mustafin commented Aug 6, 2024

_LOGALLOC define was in gc.h while all usages in vm and this vm files do not include gc.h:

grep  src/coreclr/ -re LOGALLOC
src/coreclr/vm/gchelpers.cpp:#ifdef  _LOGALLOC
src/coreclr/vm/gchelpers.cpp:#ifdef  _LOGALLOC
src/coreclr/vm/gchelpers.cpp:#endif // _LOGALLOC
src/coreclr/vm/jitinterface.cpp:#ifdef _LOGALLOC
src/coreclr/vm/jitinterface.cpp:#endif // _LOGALLOC
src/coreclr/gc/gc.h:#define  _LOGALLOC

It caused lack of object allocation messages in common clr log.

@ghost ghost added the area-GC-coreclr label Aug 6, 2024
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Aug 6, 2024
@dotnet-policy-service
Copy link
Contributor

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

@t-mustafin
Copy link
Contributor Author

cc @dotnet/samsung


struct RCW;

#ifdef _DEBUG
Copy link
Member

Choose a reason for hiding this comment

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

feels odd in object.h. Can it be added to log.h?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, done. Actually it just duplicates "_DEBUG" macro. Maybe it should be cleaned up and ifdef's should check "_DEBUG" macro instead?

Copy link
Member

@gbalykov gbalykov left a comment

Choose a reason for hiding this comment

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

LGTM

@t-mustafin t-mustafin deleted the fix_logalloc branch August 7, 2024 09:15
@github-actions github-actions bot locked and limited conversation to collaborators Sep 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-GC-coreclr community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants