-
Notifications
You must be signed in to change notification settings - Fork 479
queue_specific_queue is missing its do_push vtable entry #223
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
Also reorder all vtable entries to be in the same order (push, invoke, wakeup). Reenable dispatch_context_for_key. SR: SR-4039
|
@swift-ci please test |
| .do_dispose = _dispatch_queue_dispose, | ||
| .do_invoke = _dispatch_queue_invoke, | ||
| .do_push = _dispatch_queue_push, | ||
| .do_invoke = _dispatch_queue_invoke, |
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.
FWIW push -> wakeup -> invoke would have seemed the natural order to me ;-)
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 just kept the order that was dominating. For real the better order is:
wakeup -> push -> invoke. (cause it's in that order it happens)
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.
actually no I'm tired, it's push on self, wakeup onto target, then invoke you're correct :P
dgrove-oss
left a comment
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.
Looks good to me; I applied the fix of adding the missing .do_push entry to the queue_specific_queue vtable and have been run dispatch_context_for_key in loop without crashing for several thousand iterations. Was crashing in < 100 iterations before.
queue_specific_queue is missing its do_push vtable entry Signed-off-by: Daniel A. Steffen <dsteffen@apple.com>
Also reorder all vtable entries to be in the same order (push, invoke,
wakeup).
Reenable dispatch_context_for_key.
SR: SR-4039