Skip to content

[Profiler] Duplicate GarbageCollectionFinished notification #116666

Closed Answered by mdh1418
Liangjia0411 asked this question in Q&A
Discussion options

You must be logged in to vote

From Maoni's comment in #108273, it doesn't appear to be a bug.

it's perfectly normal to receive a GarbageCollectionFinished for a foreground ephemeral GC followed by another GarbageCollectionFinished for a BGC.

Yes, you are correct that COR_PRF_HIGH_BASIC_GC will not trigger the code paths in which the profiler will disable concurrent GC, which is checked by COR_PRF_MONITOR_GC as I had mentioned in #108273 (comment).

The profiler should be disabling concurrent GC with that event mask either when the profiler loads at startup or when the profiler is attaching and disabled here.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@Liangjia0411
Comment options

@mdh1418
Comment options

mdh1418 Jun 17, 2025
Collaborator

@Liangjia0411
Comment options

@mdh1418
Comment options

mdh1418 Jun 17, 2025
Collaborator

Answer selected by Liangjia0411
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants