Rollup merge of #162602 - bjorn3:safer_fcntl_fallback, r=oli-obk

Ensure concurrent rustc instances in the same process correctly lock the session dir

This introduces a global lock registry for the `fcntl` lock fallback to allow emulating fd based locks (like `flock()`) on top of the `fcntl(F_SETLK)` process based locks, thereby ensuring that concurrent rustc instances inside the same process don't break the incr comp locking scheme.

Based on https://github.com/rust-lang/rust/pull/162584
This commit is contained in:
Jonathan Brouwer
2026-09-17 21:00:10 +02:00
committed by GitHub
8 changed files with 201 additions and 33 deletions

View File

@@ -5056,6 +5056,7 @@ dependencies = [
"expect-test",
"indexmap",
"itertools",
"libc",
"minifier",
"proc-macro2",
"pulldown-cmark-escape",