Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

@kouvel
Copy link

@kouvel kouvel commented Dec 30, 2018

Fx counterpart to dotnet/coreclr#21722

@kouvel kouvel added this to the 3.0 milestone Dec 30, 2018
@kouvel kouvel self-assigned this Dec 30, 2018
@kouvel kouvel requested a review from stephentoub December 30, 2018 23:48
@kouvel
Copy link
Author

kouvel commented Dec 31, 2018

@dotnet-bot test Windows x64 Debug Build

do
{
spin.SpinOnce();
spin.SpinOnce(sleep1Threshold: -1);
Copy link
Member

Choose a reason for hiding this comment

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

I'm a little surprised the SpinOnce call here is valuable. This is one of the ones you tried removing and saw a regression as a result?

Copy link
Author

@kouvel kouvel Dec 31, 2018

Choose a reason for hiding this comment

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

Yea I tried removing this one and the one in Pop, simplifying the one in pop to remove the extra backoff, so far those things didn't pan out, even the extra backoff in Pop seems to be (marginally) better than just one SpinOnce(sleep1Threshold: -1).

@kouvel
Copy link
Author

kouvel commented Dec 31, 2018

@dotnet-bot test Linux arm64 Release Build

1 similar comment
@kouvel
Copy link
Author

kouvel commented Dec 31, 2018

@dotnet-bot test Linux arm64 Release Build

@stephentoub stephentoub merged commit 4b6cc4f into dotnet:master Jan 2, 2019
@kouvel kouvel deleted the SpinFixFx branch May 10, 2019 18:52
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants