Regression with invalid setup of the WASM temp allocator.

This commit is contained in:
Christoffer Lerno
2025-04-07 21:58:21 +02:00
parent 8cce7f6836
commit 25d416aca1
2 changed files with 2 additions and 1 deletions

View File

@@ -435,7 +435,7 @@ fn Allocator create_temp_allocator_on_demand() @private
auto_create_temp = true;
abort("Use '@pool_init()' to enable the temp allocator on a new thread. A temp allocator is only implicitly created on the main thread.");
}
return create_temp_allocator(base_allocator(), temp_allocator_size());
return create_temp_allocator(temp_base_allocator, temp_allocator_size());
}
<*
@require !top_temp : "This should never be called when temp already exists"

View File

@@ -11,6 +11,7 @@
### Fixes
- Trying to cast an enum to int and back caused the compiler to crash.
- Incorrect rounding at compile time going from double to int.
- Regression with invalid setup of the WASM temp allocator.
### Stdlib changes
- Hash functions for integer vectors and arrays.