Releases
v2.0.5
Compare
Sorry, something went wrong.
No results found
Fixed
Evaluating or dropping deeply nested constant expressions no longer overflows the native stack. #2133
This is a side effect of the ConstExpr redesign below.
Previously, deep extended-const expressions aborted the process, even when only dropping their Module.
Thanks to Dickson Wu (SEAL & CertiK) for reporting the issue and proposing a fix!
Translating global.get of an immutable global no longer re-evaluates its initializer. #2134
Previously, translation time grew with the initializer's length times the number of global.gets reading it.
Only single-operator initializers are inlined now. Toolchains already fold constant initializers.
Func::new and Linker::func_new now panic for function types with v128 without the simd crate feature. #2137
Previously, calling such a host function via Func::call allowed to write past the end of the value stack in some cases.
Thanks to tcp-raw for reporting the issue!
Formatting an Engine or Store via Debug no longer races with concurrent lazy compilation. #2138
Previously, this caused a data race and use-after-free on a function's uncompiled data.
Thanks to tcp-raw for reporting the issue!
Internal
Redesigned ConstExpr as a flat postfix list of operators evaluated by the new ConstExprEvaluator. #2133
Single-operator expressions, the common case, require no heap allocation.
Evaluation is untyped and reuses its stack across instantiation.
You can’t perform that action at this time.