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

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

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

Visibility: public

Requested revision: 07f6fc30002b479d711a3a990dab75686cf14bec

Requested commit: 07f6fc30002b479d711a3a990dab75686cf14bec

Commit: 07f6fc30002b479d711a3a990dab75686cf14bec

Tree: 7d851e643a7107fc90e681a2876e2de001ffb04b

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

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

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