about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/queries.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-06-03 10:06:59 +0000
committerbors <bors@rust-lang.org>2023-06-03 10:06:59 +0000
commit1e17cef9e29961636db63730784caea4b7d47ff5 (patch)
treef92edbe04aef03a1f27bba0adf597ad6d41370ae /compiler/rustc_interface/src/queries.rs
parent8177591aecf9c2ab1e96ba7fe2c00753f26a2011 (diff)
parent716cc5ac938ad0a5302fe924a7142c0cc1d7d515 (diff)
downloadrust-1e17cef9e29961636db63730784caea4b7d47ff5.tar.gz
rust-1e17cef9e29961636db63730784caea4b7d47ff5.zip
Auto merge of #109432 - flba-eb:108594_forkspawn_exponential_backoff, r=workingjubilee
QNX Neutrino: exponential backoff when fork/spawn needs a retry

Fixes #108594: When retrying, sleep with an exponential duration. When sleep duration is lower than minimum possible sleeping time, yield instead (this will not be often due to the exponential increase of duration).

Minimum possible sleeping time is determined using `libc::clock_getres` but only when spawn/fork failed the first time in a request. This is cached using a LazyLock.

CC `@gh-tr`

r? `@workingjubilee`
`@rustbot` label +O-neutrino
Diffstat (limited to 'compiler/rustc_interface/src/queries.rs')
0 files changed, 0 insertions, 0 deletions