8000 build(deps): update shuttle requirement from =0.9.8 to =0.9.10 by dependabot[bot] · Pull Request #972 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content

build(deps): update shuttle requirement from =0.9.8 to =0.9.10 - #972

Merged
adityamukho merged 1 commit into
mainfrom
dependabot/cargo/shuttle-eq-0.9.10
Dec 1, 2026
Merged

adityamukho merged 1 commit into
mainfrom
dependabot/cargo/shuttle-eq-0.9.10

Conversation

@dependabot
@dependabot dependabot Bot commented on behalf of github Dec 1, 2026
Copy link
Copy Markdown
Contributor

Updates the requirements on shuttle to permit the latest version.

Release notes

Sourced from shuttle's releases.

v0.9.10

  • A task now returns its continuation, and with it its stack, to the continuation pool as soon as it finishes, instead of keeping it until execution teardown, so a task spawned later in the same execution reuses it. The stack memory an execution uses therefore grows with the number of tasks alive at the same time rather than with the number of tasks it has ever spawned, which is what made long-running, spawn-heavy executions impractical. Spawning and joining 30,000 threads one after the other in a single execution went from 152 MB resident and 1.9 GB of mapped stacks to 29 MB and 42 MB (release build, without vector clocks, Linux x86-64). Before this change the same program could not get much further: at 33,000 threads it ran out of memory mappings (each stack takes two, and Linux allows 65,530 by default), and the test died in DefaultStack::new with Cannot allocate memory. It now reaches 50,000 threads at 47 MB.

    A task gives up only what it cannot use again once it has finished: its stack, and any backtrace captured while it was blocked. Everything whose destructor runs user code — its spans, its tag and its task-local values — is still dropped by execution teardown, as the task, exactly as before, so nothing of the user's runs any earlier than it used to and a finished task's step span still closes at the end of the execution. Everything that can be asked about a finished task is unchanged. Each finished task still keeps its record until the execution ends, which under the vector-clocks feature includes its clock, so a spawn-heavy execution is still quadratic in memory with that feature on.

  • Fix a thread spawned with thread::Builder::stack_size sometimes running on, and overflowing, a smaller stack than it asked for. The pool reused whichever continuation came first, whatever stack size it had been created with, so a thread could be handed a smaller stack that another task had freed — for instance when threads with different stack sizes were spawned in a different order than in a previous execution, since the pool outlives each execution. The pool now reuses the smallest continuation whose stack is at least as large as the one requested. Reusing stacks within an execution, as above, would have made this much easier to hit. Taking the smallest rather than the first that fits also keeps the pool from growing: handing a large stack to a task that asked for a small one would leave the next large request with nothing to reuse, so the pool would accumulate more large stacks than the execution ever needs at once.

  • Performance: a thread exiting no longer looks at every task the execution has created, only at the unfinished ones, so its cost no longer grows with the number of threads that finished before it. Together with the stack reuse above, spawning and joining 30,000 threads one after the other in a single execution takes 0.05 s instead of 0.67 s.

  • Take a scheduling point before an Acquire of a BatchSemaphore that is dropped before it completes leaves the semaphore, when it is queued or holds the reservation. Such an Acquire is still visible to other tasks: a release grants it permits ahead of later requests on a strictly fair semaphore, and on an unfair one no other request can take a permit while it holds the reservation. The drop ran in the same step as the task's previous operation, so Shuttle missed the interleavings in which a release or a try_acquire sees the Acquire still there. This happens whenever a select!, a timeout or an abort cancels a blocked acquire, including the tokio wrapper's Semaphore acquires and its bounded mpsc send and reserve. Add runtime::thread::switch_if_not_stopping, and make BatchSemaphore::release_no_scheduling_point public, for primitives whose release is part of an operation that has already taken its scheduling point. (#412, #407)

  • shuttle-tokio: add the scheduling points that were missing from Notify, mpsc, oneshot, watch and OnceCell (#262). In each of the operations below, the access to the primitive's state ran in the same step as the task's previous operation, so Shuttle never ran another task between the two and missed the bugs that need such an interleaving; for example, a waiter that read true from a flag that the notifier stored right before notify_one always found a permit stored. Each now takes one scheduling point before the access:

    • Notify: notify_one, notify_waiters, enable(), a poll of a Notified that does not follow a wake-up, and the drop of a Notified that has not completed. Notify now wakes its waiters through the futures oneshot directly, so it takes no further scheduling points inside these. (#404, #410)
    • mpsc: UnboundedSender::send, Permit::send and OwnedPermit::send, and the drop of the last sender. Each send now pushes its message and releases the receiver's permit in the same step: before, a receiver could run between the two, see the message in len() and get Empty from try_recv(). The drop of the last sender now closes the channel in the same step as it drops the sender count to zero, so is_closed() returns true once recv has returned None, and it no longer panics when the sender is dropped outside of an execution. The number of scheduling points per operation stays the same. (#407)
    • oneshot: Receiver::poll (before the poll, not after a Ready one), Sender::closed, Sender::poll_closed, the drop of a Sender that did not send and the drop of a Receiver. (#410)
    • watch: Sender::send, Sender::subscribe, the drops of the last Sender and of the last Receiver, and the reads of changed, wait_for and Sender::closed after they register for a notification. (#411)
    • OnceCell: the store of the value that the initializer of get_or_init or get_or_try_init returns. (#413)

    The drops skip their scheduling point outside of an execution and after the execution stops. Query methods such as is_closed, len, receiver_count and has_changed still take none. These scheduling points add schedules to explore, so exhaustive tests of code that uses these primitives can take longer. The drop of a Notified that notify_one picked now also passes the notification on while its task unwinds a caught panic.

  • Publish shuttle 0.9.10, shuttle-engine 0.1.8 and shuttle-tokio-impl-inner 0.1.7. shuttle-tokio-impl-inner requires shuttle-engine 0.1.8, for switch_if_not_stopping and the public release_no_scheduling_point, and shuttle requires it for the fixes above. shuttle-std 0.1.5 and shuttle-schedulers 0.1.1 are unchanged; they take shuttle-engine as ^0.1.7 and ^0.1.1, so they build against 0.1.8 as they stand. The already-published shuttle-tokio-impl 0.1.2 and shuttle-tokio 1.0.0 require inner as ^0.1.5 and re-export it with a glob, so they pick up the fixes without being republished.

Changelog

Sourced from shuttle's changelog.

0.9.10 (November 4, 2026)

  • A task now returns its continuation, and with it its stack, to the continuation pool as soon as it finishes, instead of keeping it until execution teardown, so a task spawned later in the same execution reuses it. The stack memory an execution uses therefore grows with the number of tasks alive at the same time rather than with the number of tasks it has ever spawned, which is what made long-running, spawn-heavy executions impractical. Spawning and joining 30,000 threads one after the other in a single execution went from 152 MB resident and 1.9 GB of mapped stacks to 29 MB and 42 MB (release build, without vector clocks, Linux x86-64). Before this change the same program could not get much further: at 33,000 threads it ran out of memory mappings (each stack takes two, and Linux allows 65,530 by default), and the test died in DefaultStack::new with Cannot allocate memory. It now reaches 50,000 threads at 47 MB.

    A task gives up only what it cannot use again once it has finished: its stack, and any backtrace captured while it was blocked. Everything whose destructor runs user code — its spans, its tag and its task-local values — is still dropped by execution teardown, as the task, exactly as before, so nothing of the user's runs any earlier than it used to and a finished task's step span still closes at the end of the execution. Everything that can be asked about a finished task is unchanged. Each finished task still keeps its record until the execution ends, which under the vector-clocks feature includes its clock, so a spawn-heavy execution is still quadratic in memory with that feature on.

  • Fix a thread spawned with thread::Builder::stack_size sometimes running on, and overflowing, a smaller stack than it asked for. The pool reused whichever continuation came first, whatever stack size it had been created with, so a thread could be handed a smaller stack that another task had freed — for instance when threads with different stack sizes were spawned in a different order than in a previous execution, since the pool outlives each execution. The pool now reuses the smallest continuation whose stack is at least as large as the one requested. Reusing stacks within an execution, as above, would have made this much easier to hit. Taking the smallest rather than the first that fits also keeps the pool from growing: handing a large stack to a task that asked for a small one would leave the next large request with nothing to reuse, so the pool would accumulate more large stacks than the execution ever needs at once.

  • Performance: a thread exiting no longer looks at every task the execution has created, only at the unfinished ones, so its cost no longer grows with the number of threads that finished before it. Together with the stack reuse above, spawning and joining 30,000 threads one after the other in a single execution takes 0.05 s instead of 0.67 s.

  • Take a scheduling point before an Acquire of a BatchSemaphore that is dropped before it completes leaves the semaphore, when it is queued or holds the reservation. Such an Acquire is still visible to other tasks: a release grants it permits ahead of later requests on a strictly fair semaphore, and on an unfair one no other request can take a permit while it holds the reservation. The drop ran in the same step as the task's previous operation, so Shuttle missed the interleavings in which a release or a try_acquire sees the Acquire still there. This happens whenever a select!, a timeout or an abort cancels a blocked acquire, including the tokio wrapper's Semaphore acquires and its bounded mpsc send and reserve. Add runtime::thread::switch_if_not_stopping, and make BatchSemaphore::release_no_scheduling_point public, for primitives whose release is part of an operation that has already taken its scheduling point. (#412, #407)

  • shuttle-tokio: add the scheduling points that were missing from Notify, mpsc, oneshot, watch and OnceCell (#262). In each of the operations below, the access to the primitive's state ran in the same step as the task's previous operation, so Shuttle never ran another task between the two and missed the bugs that need such an interleaving; for example, a waiter that read true from a flag that the notifier stored right before notify_one always found a permit stored. Each now takes one scheduling point before the access:

    • Notify: notify_one, notify_waiters, enable(), a poll of a Notified that does not follow a wake-up, and the drop of a Notified that has not completed. Notify now wakes its waiters through the futures oneshot directly, so it takes no further scheduling points inside these. (#404, #410)
    • mpsc: UnboundedSender::send, Permit::send and OwnedPermit::send, and the drop of the last sender. Each send now pushes its message and releases the receiver's permit in the same step: before, a receiver could run between the two, see the message in len() and get Empty from try_recv(). The drop of the last sender now closes the channel in the same step as it drops the sender count to zero, so is_closed() returns true once recv has returned None, and it no longer panics when the sender is dropped outside of an execution. The number of scheduling points per operation stays the same. (#407)
    • oneshot: Receiver::poll (before the poll, not after a Ready one), Sender::closed, Sender::poll_closed, the drop of a Sender that did not send and the drop of a Receiver. (#410)
    • watch: Sender::send, Sender::subscribe, the drops of the last Sender and of the last Receiver, and the reads of changed, wait_for and Sender::closed after they register for a notification. (#411)
    • OnceCell: the store of the value that the initializer of get_or_init or get_or_try_init returns. (#413)

    The drops skip their scheduling point outside of an execution and after the execution stops. Query methods such as is_closed, len, receiver_count and has_changed still take none. These scheduling points add schedules to explore, so exhaustive tests of code that uses these primitives can take longer. The drop of a Notified that notify_one picked now also passes the notification on while its task unwinds a caught panic.

  • Publish shuttle 0.9.10, shuttle-engine 0.1.8 and shuttle-tokio-impl-inner 0.1.7. shuttle-tokio-impl-inner requires shuttle-engine 0.1.8, for switch_if_not_stopping and the public release_no_scheduling_point, and shuttle requires it for the fixes above. shuttle-std 0.1.5 and shuttle-schedulers 0.1.1 are unchanged; they take shuttle-engine as ^0.1.7 and ^0.1.1, so they build against 0.1.8 as they stand. The already-published shuttle-tokio-impl 0.1.2 and shuttle-tokio 1.0.0 require inner as ^0.1.5 and re-export it with a glob, so they pick up the fixes without being republished.

0.9.9 (October 28, 2026)

  • Fix locks and channels when a panic is caught with catch_unwind and the execution goes on. A Mutex or RwLock guard dropped while its task panicked closed the lock's semaphore and dropped its waiters without waking them, so a task waiting for the lock was never woken and Shuttle reported a deadlock that std doesn't have; lock() could also panic on an unwrap instead of returning a PoisonError if another task panicked between its is_closed() check and its acquire, and into_inner() on a poisoned lock panicked. A release while panicking is now an ordinary release that hands the lock to the next waiter, and the inner std::sync lock reports poisoning, as in std. More generally, Shuttle's own Drop handlers now do their bookkeeping while a task unwinds, so that, for example, a channel Sender dropped during a caught panic disconnects the channel and its receiver does not wait forever. ExecutionState::should_stop now returns true only when the execution is being abandoned or there is no execution state to update, not whenever the current thread is panicking. The tokio wrapper's primitives built on BatchSemaphore get the same behavior, which matches tokio's. (#401)

  • Model the atomics' fetch_update as std does, with a compare_exchange_weak loop, instead of running the callback inside a single step. A callback that accessed another sync primitive introduced a scheduling point between the load and the store, so a concurrent write could be lost; the callback now runs again on the new value, as in std. Add update and try_update to the atomic types, which std added in Rust 1.95. fetch_update is kept and not marked deprecated. (#405)

  • Add AtomicBool::fetch_not, which std added in Rust 1.81, and the AtomicPtr methods that std added in Rust 1.91: fetch_ptr_add, fetch_ptr_sub, fetch_byte_add, fetch_byte_sub, fetch_or, fetch_and and fetch_xor, and its fmt::Pointer impl. The bitwise operations keep the pointer's provenance, as in std. (#408)

  • shuttle-tokio: when a Notified that notify_one picked is dropped before it completes (for example by a select! that completes another branch), the notification is now passed on to another waiter, or stored as a permit if there is none, as in tokio. It used to be lost, so another waiter could wait forever and Shuttle reported a deadlock that tokio does not have. (#402)

  • Publish shuttle 0.9.9, shuttle-engine 0.1.7, shuttle-std 0.1.5 and shuttle-tokio-impl-inner 0.1.6. shuttle-std requires shuttle-engine 0.1.7, since its locks rely on a release while panicking no longer closing the semaphore, and shuttle requires both. shuttle-schedulers is unchanged at 0.1.1; it takes shuttle-engine as ^0.1.1, so it builds against 0.1.7 as it stands. The already-published shuttle-tokio-impl 0.1.2 and shuttle-tokio 1.0.0 require inner as ^0.1.5 and re-export it with a glob, so they pick up the Notify fix without being republished.

0.9.8 (October 20, 2026)

  • Fix shuttle-parking_lot's RwLock blocking plain readers when a second upgradable reader waits behind an existing upgradable read. Upgradable reads use the new BatchSemaphore::acquire_bypassable, so read and try_read can take available permits while the second upgradable read waits. (#400)

  • Publish shuttle-engine 0.1.6, shuttle 0.9.8 and shuttle-parking_lot-impl 0.1.3. shuttle now requires shuttle-engine 0.1.6, and the parking_lot implementation requires shuttle 0.9.8 or later, so updating the implementation also brings in the new semaphore API. shuttle-parking_lot stays at 0.12.5 and picks up the fix through its existing ^0.1.0 implementation dependency.

0.9.7 (October 14, 2026)

  • Implement task_local! in shuttle-tokio, with task::LocalKey and task::futures::TaskLocalFuture. shuttle-tokio used to re-export tokio's, which keeps a scope's value in a thread-local that every Shuttle task shares, so tasks saw each other's values. Each task now sees only the values of its own scopes, as in tokio, so a test that read a task-local outside of its own scope, such as in a task spawned from inside one, no longer passes by accident. Requires shuttle 0.9.7. (#380)

  • Add current::try_get_current_task, a non-panicking get_current_task for Drop handlers and tracing subscribers. It returns None outside of an execution and while Shuttle updates its own state. (#380)

  • shuttle::thread::LocalKey<T> is now UnwindSafe and RefUnwindSafe for every T, like std::thread::LocalKey. It used to take both from T, so a type that held a reference to a key, such as shuttle-tokio's task::LocalKey, was not UnwindSafe if the key's value was a RefCell. (#380)

... (truncated)

Commits
  • 855ae5d Prepare shuttle 0.9.10 release (#415)
  • ac6f3e5 Free a task's stack when it finishes, not when the execution ends (#361)
  • 7d5da00 Take a scheduling point before a cancelled Acquire leaves the semaphore (#412)
  • 9b05b68 Take a scheduling point before OnceCell stores an initializer's value (#413)
  • eb2f652 Add the missing scheduling points to the tokio wrapper's watch (#411)
  • c98a836 Oneshot scheduling points (#410)
  • b480f2c Notify scheduling points (#404)
  • cee89eb Fix the scheduling points in the tokio wrapper's mpsc sends and sender drop (...
  • 675fea6 Prepare shuttle 0.9.9 release (#409)
  • 45c7772 atomic: Add new ptr ops. Add new bool op. (#408)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [shuttle](https://github.com/awslabs/shuttle) to permit the latest version.
- [Release notes](https://github.com/awslabs/shuttle/releases)
- [Changelog](https://github.com/awslabs/shuttle/blob/main/CHANGELOG.md)
- [Commits](awslabs/shuttle@v0.9.8...v0.9.10)

---
updated-dependencies:
- dependency-name: shuttle
  dependency-version: 0.9.10
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from adityamukho as a code owner December 1, 2026 11:44
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Dec 1, 2026
@adityamukho
adityamukho merged commit 4ba287c into main Dec 1, 2026
23 checks passed
@adityamukho
adityamukho deleted the dependabot/cargo/shuttle-eq-0.9.10 branch December 1, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0