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

use atomic-fetch-and in write barrier slow-path #54744

Merged
merged 2 commits into from
Jun 10, 2024
Merged

Conversation

d-netto
Copy link
Member

@d-netto d-netto commented Jun 9, 2024

Not sure why we're not using it, but we probably should.

@d-netto d-netto added the GC Garbage collector label Jun 9, 2024
Copy link
Member

@vtjnash vtjnash left a comment

Choose a reason for hiding this comment

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

You are upgrading relaxed to seq-cst, which might be occasionally a little slower?

@d-netto
Copy link
Member Author

d-netto commented Jun 9, 2024

Hmm. Perhaps use fetch-and-relaxed then?

@vtjnash
Copy link
Member

vtjnash commented Jun 9, 2024

Possibly? I guess processors usually have some sort of lock and, so it shouldn't cost more then a lock xchg?

@d-netto d-netto force-pushed the dcn-fetch-and-in-wb branch from e72e694 to f84e986 Compare June 9, 2024 23:50
@d-netto d-netto added the merge me PR is reviewed. Merge when all tests are passing label Jun 10, 2024
@d-netto d-netto merged commit fc2cafc into master Jun 10, 2024
7 of 8 checks passed
@d-netto d-netto deleted the dcn-fetch-and-in-wb branch June 10, 2024 02:11
@d-netto d-netto removed the merge me PR is reviewed. Merge when all tests are passing label Jun 10, 2024
d-netto added a commit to RelationalAI/julia that referenced this pull request Jun 28, 2024
Not sure why we're not using it, but we probably should.
d-netto added a commit to RelationalAI/julia that referenced this pull request Jul 3, 2024
Not sure why we're not using it, but we probably should.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GC Garbage collector
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants