mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-25 00:00:18 +02:00
Pad fields to cacheline size to avoid false sharing (#475)
This commit is contained in:
committed by
Carl Lerche
parent
6ba8e7621d
commit
c17ecb53e7
@@ -85,7 +85,7 @@ impl super::Executor for DefaultExecutor {
|
||||
EXECUTOR.with(|current_executor| {
|
||||
match current_executor.get() {
|
||||
Some(executor) => {
|
||||
let executor = unsafe { &mut *executor };
|
||||
let executor = unsafe { &*executor };
|
||||
executor.status()
|
||||
}
|
||||
None => {
|
||||
|
||||
Reference in New Issue
Block a user