-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
JIT: add option to use interlocked add for PGO edge count updates #81934
Conversation
Mainly intended for use in determining what is leading to some consistency issues with our current edge profiles. We might consider enabling this in some of our static PGO collections. Enabled via JitInterlockedProfile=1.
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch, @kunalspathak Issue DetailsMainly intended for use in determining what is leading to some consistency issues with our current edge profiles. We might consider enabling this in some of our static PGO collections. Enabled via JitInterlockedProfile=1.
|
@EgorBo PTAL Off by default, so no diffs/impact expected. |
Note the codegen here could be improved to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we also need it for BasicBlockInstrumentator?
It is interesting that the effect from this is not as bad as I expected on TE, 275k RPS (atomic) vs 285k RPS (default). But probably because it's hidden under cache ping-pong overhead |
Is that with or without ##81932? |
without |
Mainly intended for use in determining what is leading to some consistency issues with our current edge profiles. We might consider enabling this in some of our static PGO collections.
Enabled via JitInterlockedProfile=1.