Skip to content

chore(deps): bump parking_lot from 0.12.5 to 0.13.0 - #1992

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/parking_lot-0.13.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/parking_lot-0.13.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Bumps parking_lot from 0.12.5 to 0.13.0.

Release notes

Sourced from parking_lot's releases.

parking_lot-v0.13.0

  • 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_api const_new methods and the redundant parking_lot const_* 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

... (truncated)

Changelog

Sourced from parking_lot's changelog.

0.13.0 (parking_lot), 0.10.0 (parking_lot_core), 0.5.0 (lock_api) - 2026-10-21

  • 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_api const_new methods and the redundant parking_lot const_* 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)

... (truncated)

Commits
  • 1a5c3dd Update changelog
  • ec07063 chore: release
  • f369d24 Merge pull request #538 from napi-rs/wasi-threads-parker
  • 2f4103f Remove the WASI backend note from stable restrictions
  • a3e8717 Reuse existing CI jobs for WASI coverage
  • c2bfc7b Merge pull request #549 from Amanieu/fix-l4re-condvar-clock
  • 696f28b Don't use pthread_condattr_setclock on L4RE
  • 52941c0 Share the libc dependency between Unix and WASI
  • 4fde6a7 Align the Rust setup action with existing workflows
  • f0ce547 Reuse the pthread backend for WASI on stable
  • Additional commits viewable in compare view

@dependabot dependabot Bot added the C-deps For PRs that update dependencies or related components label Oct 29, 2026
@hyperlight-gh-bot

This comment has been minimized.

@jsturtevant

Copy link
Copy Markdown
Contributor

@dependabot rebase

@dependabot
dependabot Bot force-pushed the dependabot/cargo/parking_lot-0.13.0 branch from 7677bca to f28c276 Compare October 29, 2026 22:32
@hyperlight-gh-bot

This comment has been minimized.

@jsturtevant

Copy link
Copy Markdown
Contributor

this is the same as #1831, where we need to bump past 1.95

  • parking_lot 0.13.0
  • parking_lot_core 0.10.0
  • lock_api 0.5.0

All require Rust 1.95, while hyperlight-host requires Rust 1.89

Bumps [parking_lot](https://github.com/Amanieu/parking_lot) from 0.12.5 to 0.13.0.
- [Release notes](https://github.com/Amanieu/parking_lot/releases)
- [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md)
- [Commits](Amanieu/parking_lot@parking_lot-v0.12.5...parking_lot-v0.13.0)

---
updated-dependencies:
- dependency-name: parking_lot
  dependency-version: 0.13.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/cargo/parking_lot-0.13.0 branch from f28c276 to f878904 Compare November 23, 2026 04:15
@hyperlight-gh-bot

Copy link
Copy Markdown

Benchmark Results

Measured commit: f878904d417d
Baseline commit: 7894cb20f748

kvm / amd (Linux) (➖ stable)

No benchmark improved or regressed.

Benchmark Results

function_call_codec

encode_control decode_vec_bytes_copy
byte_chunks 277.73 ns (➖ 1.01x slower)
vec_bytes 81.01 ns (➖ 1.01x faster)
382.79 µs (➖ 1.03x slower)

payload_allocation

slot_pool_segmented
65536 143.59 ns (➖ 1.02x slower)
262144 521.82 ns (➖ 1.01x faster)

sandboxes

create_initialized_and_drop
medium 13.44 ms (➖ 1.03x faster)

slot_pool

alloc_dealloc_4096 alloc_dealloc_1500 alloc_dealloc_128
7.68 ns (➖ 1.03x faster) 7.70 ns (➖ 1.00x slower) 7.73 ns (➖ 1.01x slower)

snapshot_files

load_snapshot_unverified
small 117.52 µs (➖ 1.01x slower)

virtq_readonly

slot_pool_segmented slot_pool_segmented_fragmented
65536 1.92 µs (➖ 1.11x faster) 2.04 µs (➖ 1.05x slower)
262144 7.19 µs (➖ 1.07x faster) 7.22 µs (➖ 1.00x slower)

virtq_readwrite

slot_pool_segmented slot_pool_segmented_fragmented
65536 6.26 µs (➖ 1.00x faster) 6.28 µs (➖ 1.04x faster)
262144 28.28 µs (➖ 1.03x slower)
8192 1.07 µs (➖ 1.02x slower) 1.05 µs (➖ 1.03x slower)
kvm / intel (Linux) (➖ stable)

No benchmark improved or regressed.

Benchmark Results

function_call_codec

encode_control decode_vec_bytes_copy
byte_chunks 257.93 ns (➖ 1.00x faster)
vec_bytes 82.29 ns (➖ 1.01x faster)
662.49 µs (➖ 1.01x faster)

payload_allocation

slot_pool_segmented
65536 168.65 ns (➖ 1.03x faster)
262144 493.15 ns (➖ 1.01x faster)

sandboxes

create_initialized_and_drop
medium 15.25 ms (➖ 1.05x faster)

slot_pool

alloc_dealloc_4096 alloc_dealloc_1500 alloc_dealloc_128
6.75 ns (➖ 1.01x faster) 6.79 ns (➖ 1.00x slower) 6.77 ns (➖ 1.00x faster)

snapshot_files

load_snapshot_unverified
small 60.41 µs (➖ 1.08x slower)

virtq_readonly

slot_pool_segmented slot_pool_segmented_fragmented
65536 2.13 µs (➖ 1.02x slower) 2.10 µs (➖ 1.01x faster)
262144 7.53 µs (➖ 1.00x slower) 7.49 µs (➖ 1.00x slower)

virtq_readwrite

slot_pool_segmented slot_pool_segmented_fragmented
65536 6.97 µs (➖ 1.01x faster) 7.00 µs (➖ 1.01x faster)
262144 28.63 µs (➖ 1.01x faster)
8192 700.62 ns (➖ 1.00x faster) 703.26 ns (➖ 1.03x faster)
mshv3 / amd (Linux) (➖ stable)

No benchmark improved or regressed.

Benchmark Results

function_call_codec

encode_control decode_vec_bytes_copy
byte_chunks 389.30 ns (➖ 1.06x slower)
vec_bytes 105.73 ns (➖ 1.01x faster)
338.65 µs (➖ 1.27x slower)

payload_allocation

slot_pool_segmented
65536 193.47 ns (➖ 1.00x slower)
262144 727.93 ns (➖ 1.10x faster)

sandboxes

create_initialized_and_drop
medium 54.24 ms (➖ 1.22x faster)

slot_pool

alloc_dealloc_4096 alloc_dealloc_1500 alloc_dealloc_128
9.55 ns (➖ 1.00x faster) 9.80 ns (➖ 1.00x faster) 9.50 ns (➖ 1.01x faster)

snapshot_files

load_snapshot_unverified
small 104.73 µs (➖ 1.00x faster)

virtq_readonly

slot_pool_segmented slot_pool_segmented_fragmented
65536 2.21 µs (➖ 1.04x faster) 2.39 µs (➖ 1.06x faster)
262144 10.07 µs (➖ 1.04x faster) 10.08 µs (➖ 1.12x faster)

virtq_readwrite

slot_pool_segmented slot_pool_segmented_fragmented
65536 8.07 µs (➖ 1.21x faster) 8.23 µs (➖ 1.21x faster)
262144 36.29 µs (➖ 1.08x faster)
8192 1.21 µs (➖ 1.00x slower) 1.20 µs (➖ 1.04x faster)
mshv3 / intel (Linux) (➖ stable)

No benchmark improved or regressed.

Benchmark Results

function_call_codec

encode_control decode_vec_bytes_copy
byte_chunks 356.64 ns (➖ 1.02x faster)
vec_bytes 88.40 ns (➖ 1.11x faster)
683.67 µs (➖ 1.00x slower)

payload_allocation

slot_pool_segmented
65536 258.46 ns (➖ 1.02x slower)
262144 707.02 ns (➖ 1.07x slower)

sandboxes

create_initialized_and_drop
medium 70.08 ms (➖ 1.06x faster)

slot_pool

alloc_dealloc_4096 alloc_dealloc_1500 alloc_dealloc_128
8.68 ns (➖ 1.00x faster) 8.68 ns (➖ 1.01x faster) 13.39 ns (➖ 1.54x slower)

snapshot_files

load_snapshot_unverified
small 53.60 µs (➖ 1.00x faster)

virtq_readonly

slot_pool_segmented slot_pool_segmented_fragmented
65536 2.28 µs (➖ 1.01x slower) 2.30 µs (➖ 1.00x slower)
262144 8.02 µs (➖ 1.02x slower) 7.88 µs (➖ 1.00x faster)

virtq_readwrite

slot_pool_segmented slot_pool_segmented_fragmented
65536 7.46 µs (➖ 1.01x slower) 7.54 µs (➖ 1.00x faster)
262144 38.59 µs (➖ 1.02x slower)
8192 892.14 ns (➖ 1.02x faster) 898.94 ns (➖ 1.02x faster)
hyperv-ws2025 / amd (Windows) (➖ stable)

No benchmark improved or regressed.

Benchmark Results

function_call_codec

encode_control decode_vec_bytes_copy
byte_chunks 583.29 ns (➖ 1.02x slower)
vec_bytes 167.40 ns (➖ 1.01x slower)
1.93 ms (➖ 1.02x faster)

payload_allocation

slot_pool_segmented
65536 229.77 ns (➖ 1.00x slower)
262144 789.03 ns (➖ 1.01x slower)

sandboxes

create_initialized_and_drop
medium 13.18 ms (➖ 1.00x slower)

slot_pool

alloc_dealloc_4096 alloc_dealloc_1500 alloc_dealloc_128
10.02 ns (➖ 1.00x slower) 9.94 ns (➖ 1.00x slower) 10.02 ns (➖ 1.00x slower)

snapshot_files

load_snapshot_unverified
small 803.89 µs (➖ 1.02x slower)

virtq_readonly

slot_pool_segmented slot_pool_segmented_fragmented
65536 2.33 µs (➖ 1.01x faster) 2.35 µs (➖ 1.02x slower)
262144 9.20 µs (➖ 1.01x slower) 9.21 µs (➖ 1.03x slower)

virtq_readwrite

slot_pool_segmented slot_pool_segmented_fragmented
65536 8.75 µs (➖ 1.00x faster) 9.12 µs (➖ 1.01x faster)
262144 40.99 µs (➖ 1.07x slower)
8192 1.26 µs (➖ 1.07x faster) 1.29 µs (➖ 1.01x faster)
hyperv-ws2025 / intel (Windows) (➖ stable)

No benchmark improved or regressed.

Benchmark Results

function_call_codec

encode_control decode_vec_bytes_copy
byte_chunks 600.23 ns (➖ 1.01x slower)
vec_bytes 169.83 ns (➖ 1.02x slower)
3.13 ms (➖ 1.01x slower)

payload_allocation

slot_pool_segmented
65536 209.66 ns (➖ 1.00x slower)
262144 759.87 ns (➖ 1.04x slower)

sandboxes

create_initialized_and_drop
medium 14.79 ms (➖ 1.03x faster)

slot_pool

alloc_dealloc_4096 alloc_dealloc_1500 alloc_dealloc_128
9.89 ns (➖ 1.00x slower) 9.60 ns (➖ 1.00x slower) 9.65 ns (➖ 1.01x faster)

snapshot_files

load_snapshot_unverified
small 716.73 µs (➖ 1.02x slower)

virtq_readonly

slot_pool_segmented slot_pool_segmented_fragmented
65536 2.26 µs (➖ 1.01x slower) 2.27 µs (➖ 1.00x faster)
262144 7.61 µs (➖ 1.00x slower) 7.61 µs (➖ 1.01x faster)

virtq_readwrite

slot_pool_segmented slot_pool_segmented_fragmented
65536 9.01 µs (➖ 1.09x slower) 8.27 µs (➖ 1.01x faster)
262144 45.12 µs (➖ 1.01x faster)
8192 1.12 µs (➖ 1.06x faster) 1.17 µs (➖ 1.01x slower)

Reported by cargo ci bench-report --candidate run:45110767005 --config-file bench_report.toml.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-deps For PRs that update dependencies or related components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant