-
Notifications
You must be signed in to change notification settings - Fork 474
Remove dependency on sys_membarrier on linux #277
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
This is the right way of doing #228 |
f9424ee
to
12fc950
Compare
@swift-ci please test |
src/once.c
Outdated
|
||
DISPATCH_ONCE_SLOW_INLINING | ||
static void | ||
dispatch_once_f_slow(dispatch_once_t *val, void *ctxt, dispatch_function_t func) |
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.
_dispatch_once_f_slow
src/once.c
Outdated
void | ||
dispatch_once_f(dispatch_once_t *val, void *ctxt, dispatch_function_t func) | ||
#if DISPATCH_ONCE_INLINE_FASTPATH | ||
#define DISPATCH_ONCE_SLOW_INLINING inline DISPATCH_ALWAYS_INLINE |
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.
INLINING seems weird, DISPATCH_ONCE_SLOW_INLINE ?
By not inlining the fastpath of dispatch_once() when the hardware cannot give us the right semantics.
12fc950
to
93d2dd9
Compare
@das handled |
Adding @dgrove-oss which I should have done from the get go |
Remove dependency on sys_membarrier on linux Signed-off-by: Daniel A. Steffen <[email protected]>
By not inlining the fastpath of dispatch_once() when the hardware cannot
give us the right semantics.