# threads: fix using unmapped memory in some cases · gitcafe/zig

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

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

Visibility: public

Requested revision: 947c87b558f860a3d87fe1aed6cc96f94fc00cb2

Requested commit: 947c87b558f860a3d87fe1aed6cc96f94fc00cb2

Commit: 947c87b558f860a3d87fe1aed6cc96f94fc00cb2

Tree: aaa098838a0f82018efdb1fe5339a20d751c9beb

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
threads: fix using unmapped memory in some cases

as pointed out in #musl IRC, the memory for the fs register address
value needs to be taken into account in the mmap call.

```

## Parents

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

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