-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[runtime] Fix C and LLVM atomics on ARM64 #3464
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
Conversation
|
@vargaz does the LLVM bit look ok? |
|
Yes. |
mono/utils/atomic.h
Outdated
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 really need unique names for this variable ?
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.
Given the var is scoped, I wonder the same. It's a style issue, though.
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.
Probably a bit overengineered. Will simplify before merging.
|
LGTM Good catch on removing ia64 dead code and unifying gcc version numbering. There's the style issue that Vlad pointed out, but that doesn't invalidate this PR itself. |
See the comment in atomic.h for details.
This is a workaround. It's needed for the same reason that we need the fix for Clang's atomic intrinsics in mono/utils/atomic.h.
All ia64 compilers have intrinsics that we use. Also, this ia64 code was very out of date (missing many functions we use now) so it wouldn't compile anyway.
[runtime] Fix C and LLVM atomics on ARM64 Commit migrated from mono/mono@2db49df
No description provided.