about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-06-05 18:21:13 +0200
committerGitHub <noreply@github.com>2024-06-05 18:21:13 +0200
commitfcc0b641e9c1a4b8dbdefa6c98b1f9924bc5ba76 (patch)
tree61b82fa6b33af0b4b040f3b85274d30990ddf9cc /compiler/rustc_codegen_llvm/src
parent36cab1260d64d031d91c5b60bda5b4988f643166 (diff)
parent8db363c44b1512b5ba30b10ac3ad915228276375 (diff)
downloadrust-fcc0b641e9c1a4b8dbdefa6c98b1f9924bc5ba76.tar.gz
rust-fcc0b641e9c1a4b8dbdefa6c98b1f9924bc5ba76.zip
Rollup merge of #125800 - fortanix:raoul/rte-99-fix_mut_static_task_queue, r=jethrogb
Fix `mut` static task queue in SGX target

[PR 125046](https://github.com/rust-lang/rust/pull/125046) prevents mutable references to statics with `#[linkage]`. Such a construct was used with the tests for the `x86_64-fortanix-unknown-sgx` target. This PR fixes this and cleans up code a bit in 5 steps. Each step passes CI:

- The `mut` static is removed, and `Task` explicitly implements `Send`
- Renaming of the `task_queue::lock` function
- Pass function for `Thread` as `Send` to `Thread::imp` and update when `Packet<'scope, T>` implements `Sync`
- Storing `Task::p` as a type that implements `Send`
- Letting the compiler auto implement `Send` for `Task`

cc: ``@jethrogb``
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions