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-sgxtarget. This PR fixes this and cleans up code a bit in 5 steps. Each step passes CI:mutstatic is removed, andTaskexplicitly implementsSendtask_queue::lockfunctionThreadasSendtoThread::impand update whenPacket<'scope, T>implementsSyncTask::pas a type that implementsSendSendforTaskcc: @jethrogb