diff --git a/lib/std/core/mem.c3 b/lib/std/core/mem.c3 index 45c9ee126..4678908bc 100644 --- a/lib/std/core/mem.c3 +++ b/lib/std/core/mem.c3 @@ -535,7 +535,7 @@ import libc; module std::core::mem @if(WASM_NOLIBC); - +import std::core::mem::allocator @public; SimpleHeapAllocator wasm_allocator @private; extern int __heap_base; @@ -546,8 +546,8 @@ fn void initialize_wasm_mem() @init(1) @private uptr start = (uptr)&__heap_base; if (start > mem::DEFAULT_MEM_ALIGNMENT) allocator::wasm_memory.use = start; wasm_allocator.init(fn (x) => allocator::wasm_memory.allocate_block(x)); - temp_base_allocator = &wasm_allocator; allocator::thread_allocator = &wasm_allocator; + allocator::init_default_temp_allocators(); } module std::core::mem; diff --git a/releasenotes.md b/releasenotes.md index f0d07b6d9..82e5d52e3 100644 --- a/releasenotes.md +++ b/releasenotes.md @@ -12,7 +12,7 @@ - Made "add" the default for things like `sources`, `dependencies` and other keys in project and library files. ### Fixes -None +- Broken WASM library code. ### Stdlib changes None