uv/crates/uv-python/src
Zanie Blue e3d5d3d26d
Avoid deadlocks when multiple uv processes lock resources (#6790)
This is achieved by updating the `LockedFile::acquire` API to be async —
as in some cases we were attempting to acquire the lock synchronously,
i.e., without yielding, which blocked the runtime.

Closes https://github.com/astral-sh/uv/issues/6691 — I tested with the
reproduction there and a local release build and no longer reproduce the
deadlock with these changes.

Some additional context in the [internal Discord
thread](1278478941)
2024-08-29 11:16:14 -05:00
..
discovery.rs Update Rust crate windows-sys to 0.59.0 (#5785) 2024-08-28 08:43:59 -05:00
downloads.inc Sync latest Python releases (#6784) 2024-08-29 03:41:07 +00:00
downloads.inc.mustache Change "toolchain" to "python" (#4735) 2024-07-03 07:44:29 -05:00
downloads.rs Add support for --trusted-host (#6591) 2024-08-27 09:36:50 -04:00
environment.rs Avoid deadlocks when multiple uv processes lock resources (#6790) 2024-08-29 11:16:14 -05:00
implementation.rs Use max rather than min to sort managed Pythons (#5205) 2024-07-19 12:35:17 +00:00
installation.rs Avoid deadlocks when multiple uv processes lock resources (#6790) 2024-08-29 11:16:14 -05:00
interpreter.rs Use separate types to represent raw vs. resolver markers (#6646) 2024-08-26 18:00:21 +00:00
lib.rs Detect musl and error for musl pbs builds (#6643) 2024-08-27 00:06:53 +00:00
libc.rs Detect musl and error for musl pbs builds (#6643) 2024-08-27 00:06:53 +00:00
managed.rs Avoid deadlocks when multiple uv processes lock resources (#6790) 2024-08-29 11:16:14 -05:00
platform.rs Detect musl and error for musl pbs builds (#6643) 2024-08-27 00:06:53 +00:00
pointer_size.rs Change "toolchain" to "python" (#4735) 2024-07-03 07:44:29 -05:00
prefix.rs Initialize all --prefix subdirectories (#4895) 2024-07-08 14:15:25 +00:00
py_launcher.rs Upgrade to Rust 1.80.0 (#5472) 2024-07-27 01:49:47 +00:00
python_version.rs Use separate types to represent raw vs. resolver markers (#6646) 2024-08-26 18:00:21 +00:00
target.rs Change "toolchain" to "python" (#4735) 2024-07-03 07:44:29 -05:00
version_files.rs Fix priority for .python-versions files in uv python install (#6382) 2024-08-21 22:17:14 +00:00
virtualenv.rs feat(venv): add relocatable flag (#5515) 2024-07-29 00:10:11 +00:00
which.rs Search for all python3.x in PATH (#5148) 2024-07-18 17:00:01 +02:00