# store allocator & remove global assembly · gitcafe/zig

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

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

Visibility: public

Requested revision: 10bf58b2db0e340137228f706ee2e8a67b46a892

Requested commit: 10bf58b2db0e340137228f706ee2e8a67b46a892

Commit: 10bf58b2db0e340137228f706ee2e8a67b46a892

Tree: 4bee037f76f15189cf25a819cddf08b5da27274b

Author: Luuk de Gram

Committer: Luuk de Gram

## Message

```
store allocator & remove global assembly

We now store the original allocator that was used to allocate the
memory required for the thread. This allocator can then be used
in any cleanup functionality to ensure the memory is freed correctly.

Secondly, we now use a function to set the stack pointer instead of
generating a function using global assembly. This is a lot cleaner
and more readable.

```

## Parents

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

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