# InternPool: add and use a mutate mutex for each list · gitcafe/zig

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

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

Visibility: public

Requested revision: a1053e8e1d961ba92ce83a8ef5470ac7f7e92e60

Requested commit: a1053e8e1d961ba92ce83a8ef5470ac7f7e92e60

Commit: a1053e8e1d961ba92ce83a8ef5470ac7f7e92e60

Tree: c59338917f7e80fc8bfe8106363a612a9e52b024

Author: Jacob Young

Committer: Jacob Young

## Message

```
InternPool: add and use a mutate mutex for each list

This allows the mutate mutex to only be locked during actual grows,
which are rare. For the lists that didn't previously have a mutex, this
change has little effect since grows are rare and there is zero
contention on a mutex that is only ever locked by one thread.  This
change allows `extra` to be mutated without racing with a grow.

```

## Parents

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

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