compiler/rustc_data_structures/src/sync.rs: delete MappedLockGuard
It seems it is left-over after some refactoring
This commit is contained in:
parent
25b6761c9e
commit
c9c7b44510
2 changed files with 2 additions and 4 deletions
|
@ -112,9 +112,8 @@ pub use std::sync::{OnceLock, Weak};
|
||||||
|
|
||||||
pub use mode::{is_dyn_thread_safe, set_dyn_thread_safe_mode};
|
pub use mode::{is_dyn_thread_safe, set_dyn_thread_safe_mode};
|
||||||
pub use parking_lot::{
|
pub use parking_lot::{
|
||||||
MappedMutexGuard as MappedLockGuard, MappedRwLockReadGuard as MappedReadGuard,
|
MappedRwLockReadGuard as MappedReadGuard, MappedRwLockWriteGuard as MappedWriteGuard,
|
||||||
MappedRwLockWriteGuard as MappedWriteGuard, RwLockReadGuard as ReadGuard,
|
RwLockReadGuard as ReadGuard, RwLockWriteGuard as WriteGuard,
|
||||||
RwLockWriteGuard as WriteGuard,
|
|
||||||
};
|
};
|
||||||
#[cfg(not(target_has_atomic = "64"))]
|
#[cfg(not(target_has_atomic = "64"))]
|
||||||
pub use portable_atomic::AtomicU64;
|
pub use portable_atomic::AtomicU64;
|
||||||
|
|
|
@ -58,7 +58,6 @@ are implemented differently depending on whether `parallel-compiler` is true.
|
||||||
| WriteGuard | parking_lot::RwLockWriteGuard | std::cell::RefMut |
|
| WriteGuard | parking_lot::RwLockWriteGuard | std::cell::RefMut |
|
||||||
| MappedWriteGuard | parking_lot::MappedRwLockWriteGuard | std::cell::RefMut |
|
| MappedWriteGuard | parking_lot::MappedRwLockWriteGuard | std::cell::RefMut |
|
||||||
| LockGuard | parking_lot::MutexGuard | std::cell::RefMut |
|
| LockGuard | parking_lot::MutexGuard | std::cell::RefMut |
|
||||||
| MappedLockGuard | parking_lot::MappedMutexGuard | std::cell::RefMut |
|
|
||||||
|
|
||||||
- These thread-safe data structures are interspersed during compilation which
|
- These thread-safe data structures are interspersed during compilation which
|
||||||
can cause lock contention resulting in degraded performance as the number of
|
can cause lock contention resulting in degraded performance as the number of
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue