runtime: record time wake when unparking tasks on current thread (#8595)
Sole Author: Patrick Ribbsaeter (@patrickswedish) · Immutable Commit SHA: 482eaddec0347431b37566b45a63f2be62db5ab4
Asynchronous Rust scheduler fix recording time-driver wake state when unparking tasks on the current-thread runtime, preventing premature paused-clock auto-advance past pending timer wakeups.

PR #8595
Merged Mainline
482eadd
Immutable Git SHA
Rust
Runtime
87/87 CI Green
CI & Test Matrix
01 · Engineering problem
The failure mode
On current_thread runtimes with paused time, internal timer wakeups routed through the underlying OS park handle rather than the runtime waker, breaking wake tracking invariants.
02 · Technical response
What changed
- 01Updated current_thread paused-time wake tracking to route wakes cleanly without spurious OS park transitions.
- 02Added deterministic async timer and wake-counter regression tests across Tokio's runtime test suite.
03 · Verified outcome
Evidence-backed result
- ✓Restored deterministic wake tracking under tokio::time::pause() on single-threaded runtimes.
- ✓Passed 87/87 CI checks and merged upstream into tokio-rs/tokio as commit 482eaddec0347431b37566b45a63f2be62db5ab4.
04 · Cryptographic Git record
Immutable source evidence
Independent open-source engineering authored solely by Patrick Ribbsaeter (@patrickswedish). Company and project names identify the public repository context only under nominative fair use. No employment, client, vendor, or partnership relationship is implied unless explicitly stated.