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

Don't require 16-byte CAS on x86. #173

Merged
merged 5 commits into from
Apr 16, 2020
Merged

Conversation

plietar
Copy link
Contributor

@plietar plietar commented Apr 15, 2020

We only need to CAS 2 pointers, which is always possible on x86.

This uses the plietar/snmalloc-build_linux_x86:latest docker image, obviously that should be changed to something under snmallocciteam.

We only need to CAS 2 pointers, which is always possible on x86.
@plietar plietar requested review from mjp41 and achamayou April 15, 2020 15:28
BuildType: Debug
SelfHost: false
CMakeArgs: ''
Image: plietar/snmalloc-build_linux_x86:latest
Copy link
Member

Choose a reason for hiding this comment

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

I'll add you to snmallocciteam, so you can update/replace images there.

Copy link
Member

Choose a reason for hiding this comment

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

Done now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks

src/ds/aba.h Outdated
@@ -99,9 +99,10 @@ namespace snmalloc
(__int64)value,
(__int64*)&old);
# else
# if defined(__GNUC__) && !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16)
# if defined(__GNUC__) && defined(SNMALLOC_VA_BITS_64) && !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16)
Copy link
Member

Choose a reason for hiding this comment

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

I'll try not to forget to that out in Open Enclave.

plietar added 4 commits April 15, 2020 17:37
The x86 image doesn't have clangformat, which causes cmake to print a
warning on the stderr. Exit codes should be enough to detect failure.
@mjp41 mjp41 merged commit 0f5cc16 into microsoft:master Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants