You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore(deps): update rust crate parking_lot to 0.13.0 - #1958
Signficantly improved Mutex and RwLock performance under contention by
deferring waking up parked threads until after the lock is released. (#545)
Added per-acquisition state to lock_api raw locks. RawMutex::Guard
replaces GuardMarker; rwlocks have separate SharedGuard, ExclusiveGuard,
and UpgradableGuard types. Unlock operations consume this state, while
upgrade and downgrade operations return replacement state. Bump and raw
condition-variable waits borrow and update the state. Consuming operations
must release their acquisition on unwind; borrowing operations must restore
ownership and valid state, or abort if restoration fails. (#544)
Raised the MSRV to Rust 1.95 and upgraded all crates to edition 2024. (#533)
Removed the hardware-lock-elision feature. (#533)
Removed automatic eventual fairness. Fair unlocking remains available through
the explicit fair-unlock APIs. This removes UnparkResult::be_fair. (#533)
Removed the no-op lock_api/nightly feature. (#533)
Removed the legacy lock_apiconst_new methods and the redundant parking_lotconst_* constructor functions; the corresponding new
methods can be called in constant contexts. (#533)
Replaced the recursive read methods on RwLock with a dedicated reader-biased RecursiveRwLock type. The RawRwLockRecursive and RawRwLockRecursiveTimed
extension traits have been removed from lock_api. (#533)
Added Once::new_completed for constructing a Once in the completed state. (#520)
Added Once::{is_completed, wait, wait_force} and the corresponding OnceState query methods. (#533)
Made additional lock, timeout, parking, and spin-wait accessors usable in
constant contexts. (#533)
Added into_inner_with_raw to lock_api's Mutex, RwLock, and ReentrantMutex. (#524)
Added RawCondvar, RawCondvarTimed, and the generic Condvar wrapper to lock_api, and implemented parking_lot::Condvar using them. Custom raw
condition variables may allow spurious wakeups; their notification methods
must then return false or 0. parking_lot::Condvar still guarantees no
spurious wakeups and exact notification counts. (#523) (#533)
Corrected the Send and Sync bounds of lock guards in lock_api. (#533)
Made RawMutex::is_locked and RawRwLock::{is_locked, is_locked_exclusive} required methods. (#533)
Renamed MappedRwLockReadGuard::try_map_or_else to try_map_or_err. (#533)
Clarified the safety requirements of raw lock implementations, including
acquire/release synchronization, moving or dropping a locked raw lock,
preserving the original lock mode on a failed upgrade, and stable thread IDs.
Acquisitions may unwind without leaving a new acquisition held; consuming
guard operations release their acquisition on unwind, while bump and wait
operations must restore ownership or abort. (#533) (#544)
Clarified the aliasing requirements of unsafe raw-access, force-unlock, and
guard-construction APIs in lock_api. (#533)
Guard unlocked and unlocked_fair operations now abort if re-locking panics.
Default raw-lock bump implementations also abort if re-locking panics. (#533)
Guard with_upgraded operations abort if raw upgrading or downgrading panics,
preserving continuous lock ownership. (#544)
Parking-lot operations in parking_lot_core are now guaranteed to never
unwind. (#533)
Documented that parking-lot-based synchronization primitives must not be used
internally by global allocators. (#533)
Fixed unlock_upgradable_fair not forcing a fair handoff. (#533)
Fixed conditional Condvar waits reporting a timeout without rechecking the predicate. (#533)
Fixed the generic thread parker continuously busy-spinning while parked. (#533)
Fixed parking on WASI by using the pthread backend when the nightly atomic
intrinsics are unavailable, including on stable threaded WASI targets. (#538)
Fixed timed waits on ESP-IDF using the wrong clock. (#533)
Made timed waits on Apple platforms independent of wall-clock changes. (#533)
Fixed the futex timeout ABI on 32-bit Linux targets, including time64-only
architectures, with fallback to time32 when the kernel lacks time64 support. (#533)
Corrected RwLock deadlock tracking to avoid false positives and missed
cycles, and prevented dependency feature unification from enabling tracking
when only parking_lot_core/deadlock_detection is enabled. (#533)
Added Once deadlock tracking and made overlapping wait cycles report as a
single component. (#533)
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.12.1→0.13.0Warning
Some dependencies could not be looked up. Check the warning logs for more information.
Release Notes
Amanieu/parking_lot (parking_lot)
v0.13.0Compare Source
MutexandRwLockperformance under contention bydeferring waking up parked threads until after the lock is released. (#545)
lock_apiraw locks.RawMutex::Guardreplaces
GuardMarker; rwlocks have separateSharedGuard,ExclusiveGuard,and
UpgradableGuardtypes. Unlock operations consume this state, whileupgrade and downgrade operations return replacement state. Bump and raw
condition-variable waits borrow and update the state. Consuming operations
must release their acquisition on unwind; borrowing operations must restore
ownership and valid state, or abort if restoration fails. (#544)
hardware-lock-elisionfeature. (#533)the explicit fair-unlock APIs. This removes
UnparkResult::be_fair. (#533)lock_api/nightlyfeature. (#533)lock_apiconst_newmethods and the redundantparking_lotconst_*constructor functions; the correspondingnewmethods can be called in constant contexts. (#533)
RwLockwith a dedicated reader-biasedRecursiveRwLocktype. TheRawRwLockRecursiveandRawRwLockRecursiveTimedextension traits have been removed from
lock_api. (#533)Once::new_completedfor constructing aOncein the completed state. (#520)Once::{is_completed, wait, wait_force}and the correspondingOnceStatequery methods. (#533)constant contexts. (#533)
into_inner_with_rawtolock_api'sMutex,RwLock, andReentrantMutex. (#524)RawCondvar,RawCondvarTimed, and the genericCondvarwrapper tolock_api, and implementedparking_lot::Condvarusing them. Custom rawcondition variables may allow spurious wakeups; their notification methods
must then return
falseor0.parking_lot::Condvarstill guarantees nospurious wakeups and exact notification counts. (#523) (#533)
SendandSyncbounds of lock guards inlock_api. (#533)RawMutex::is_lockedandRawRwLock::{is_locked, is_locked_exclusive}required methods. (#533)MappedRwLockReadGuard::try_map_or_elsetotry_map_or_err. (#533)acquire/release synchronization, moving or dropping a locked raw lock,
preserving the original lock mode on a failed upgrade, and stable thread IDs.
Acquisitions may unwind without leaving a new acquisition held; consuming
guard operations release their acquisition on unwind, while bump and wait
operations must restore ownership or abort. (#533) (#544)
guard-construction APIs in
lock_api. (#533)unlockedandunlocked_fairoperations now abort if re-locking panics.Default raw-lock bump implementations also abort if re-locking panics. (#533)
with_upgradedoperations abort if raw upgrading or downgrading panics,preserving continuous lock ownership. (#544)
parking_lot_coreare now guaranteed to neverunwind. (#533)
internally by global allocators. (#533)
unlock_upgradable_fairnot forcing a fair handoff. (#533)Condvarwaits reporting a timeout without rechecking the predicate. (#533)intrinsics are unavailable, including on stable threaded WASI targets. (#538)
architectures, with fallback to time32 when the kernel lacks time64 support. (#533)
RwLockdeadlock tracking to avoid false positives and missedcycles, and prevented dependency feature unification from enabling tracking
when only
parking_lot_core/deadlock_detectionis enabled. (#533)Oncedeadlock tracking and made overlapping wait cycles report as asingle component. (#533)
Configuration
📅 Schedule: (in timezone UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.