-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Fix mut
static task queue in SGX target
#125800
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
Fix mut
static task queue in SGX target
#125800
Conversation
This comment has been minimized.
This comment has been minimized.
1ae82d7
to
70f8310
Compare
I think in #125046 I should have only denied |
Right, but even then I don't see why Anyway, I believe this PR still cleans up the code. |
Yeah, seems preferable this way. |
70f8310
to
8db363c
Compare
@bors r- |
Waiting for @jethrogb's approval. |
hm in fact |
✌️ @jethrogb, you can now approve this pull request! If @workingjubilee told you to " |
@bors r+ |
bors sleepy @bors r- |
@fmease I'm confused about what you're trying to do. This PR is merged into master. |
Just maintenance. Sometimes @bors's queue gets out of sync with GitHub (e.g., containing already merged PRs). While I could press the "synchronize" button, it's a bit destructive and buggy (try-builds get upgraded to builds, failing PRs suddenly show up in the queue, etc.). Therefore it's typical for someone to swoop in and manually "sync" the queue by r-'ing already merged PRs which still show up in the queue. |
PR 125046 prevents mutable references to statics with
#[linkage]
. Such a construct was used with the tests for thex86_64-fortanix-unknown-sgx
target. This PR fixes this and cleans up code a bit in 5 steps. Each step passes CI:mut
static is removed, andTask
explicitly implementsSend
task_queue::lock
functionThread
asSend
toThread::imp
and update whenPacket<'scope, T>
implementsSync
Task::p
as a type that implementsSend
Send
forTask
cc: @jethrogb