-
Notifications
You must be signed in to change notification settings - Fork 113
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
Conversation
We only need to CAS 2 pointers, which is always possible on x86.
azure-pipelines.yml
Outdated
BuildType: Debug | ||
SelfHost: false | ||
CMakeArgs: '' | ||
Image: plietar/snmalloc-build_linux_x86:latest |
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.
I'll add you to snmallocciteam, so you can update/replace images there.
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.
Done now.
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.
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) |
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.
I'll try not to forget to that out in Open Enclave.
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.
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.