# wasi-libc: use \_\_heap_end if available \(\#14273\) · gitcafe/zig

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

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

Visibility: public

Requested revision: cbbf8c8a2d77d84ce88ea1cef9a3e7d54081e33d

Requested commit: cbbf8c8a2d77d84ce88ea1cef9a3e7d54081e33d

Commit: cbbf8c8a2d77d84ce88ea1cef9a3e7d54081e33d

Tree: dc5243974d7ffa4b2ea42ae5f3607a1f4965298e

Author: Frank Denis

Committer: GitHub

## Message

```
wasi-libc: use __heap_end if available (#14273)

The symbol was introduced in LLD 15.0.7, as a way to know how
much memory can be allocated:

https://github.com/llvm/llvm-project/commit/1095870e8ceddc5371f446f4e7c3473f89a461cd
https://github.com/WebAssembly/wasi-libc/pull/377
```

## Parents

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

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