Closed filmor closed 4 months ago
TODO: Check with valgrind what's going on
Locally on my Mac M1 both the Rust and Elixir tests are passing fine, so it might be something specific to the CI?
Some notes:
Reading https://github.com/E-xyza/zigler/blob/main/priv/beam/allocator.zig brought the fix, this works now.
@evnu As requested, added more comments to the allocator.
Implement a Rust global allocator using Erlang's
enif_alloc
andenif_free
.Rumor has it that this makes Rust's memory usage show up in
erlang:memory()
.The tests are currently reproducibly seg-faulting on Linux x86-64 but run through on arm64.