# Compilation: revert asking for exclusive locks on cache hits · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/ac0488430fd4ab35cab972d6409a0e244ad9637c)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: ac0488430fd4ab35cab972d6409a0e244ad9637c

Requested commit: ac0488430fd4ab35cab972d6409a0e244ad9637c

Commit: ac0488430fd4ab35cab972d6409a0e244ad9637c

Tree: 6eaa4a0f9cccb57fdc5b4fef560ca0f9fe17d97e

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Compilation: revert asking for exclusive locks on cache hits

We definitely want a shared lock on a cache hit. Without this, we get a
deadlock when Zig is asked to compile the same C source file multiple
times as part of the same compilation.

This is a partial revert of 8ccb9a6ad327a4d7fbc321b33d4aa66a27a1f5ee.

cc @kcbanner

```

## Parents

- [a6a141bbe9ddfbb1e46f45880244ebf1e2b2b5bb](https://git.cafe/gitcafe/zig/commit/a6a141bbe9ddfbb1e46f45880244ebf1e2b2b5bb?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/ac0488430fd4ab35cab972d6409a0e244ad9637c?format=markdown)
