Prevent double allocation of the payload when calling `sp_io::storage::get` (#11523)
* Expose allocation stats in `FreeingBumpHeapAllocator` * Return allocation stats when calling into the runtime * Bump `parity-scale-codec` to 3.1.3 (fork) * Prevent double allocation of the payload when calling `sp_io::storage::get` * Fix tests * Remove unnecessary `mut` * Enable the `bytes` feature for `parity-scale-codec` in `sp-runtime-interface` * Update client/allocator/src/freeing_bump.rs Co-authored-by:Bastian Köcher <bkchr@users.noreply.github.com> * Bump `parity-scale-codec` to 3.1.3 * Fix some of the UI tests Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com>
Showing
- substrate/Cargo.lock 4 additions, 0 deletionssubstrate/Cargo.lock
- substrate/client/allocator/src/freeing_bump.rs 56 additions, 41 deletionssubstrate/client/allocator/src/freeing_bump.rs
- substrate/client/allocator/src/lib.rs 1 addition, 1 deletionsubstrate/client/allocator/src/lib.rs
- substrate/client/executor/common/src/wasm_runtime.rs 16 additions, 1 deletionsubstrate/client/executor/common/src/wasm_runtime.rs
- substrate/client/executor/src/native_executor.rs 47 additions, 2 deletionssubstrate/client/executor/src/native_executor.rs
- substrate/client/executor/wasmi/src/lib.rs 24 additions, 2 deletionssubstrate/client/executor/wasmi/src/lib.rs
- substrate/client/executor/wasmtime/src/host.rs 5 additions, 1 deletionsubstrate/client/executor/wasmtime/src/host.rs
- substrate/client/executor/wasmtime/src/runtime.rs 28 additions, 6 deletionssubstrate/client/executor/wasmtime/src/runtime.rs
- substrate/frame/support/src/storage/unhashed.rs 1 addition, 1 deletionsubstrate/frame/support/src/storage/unhashed.rs
- substrate/frame/support/test/tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen.stderr 6 additions, 6 deletions.../pallet_ui/storage_ensure_span_are_ok_on_wrong_gen.stderr
- substrate/frame/support/test/tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.stderr 6 additions, 6 deletions...ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.stderr
- substrate/primitives/io/Cargo.toml 2 additions, 1 deletionsubstrate/primitives/io/Cargo.toml
- substrate/primitives/io/src/lib.rs 5 additions, 5 deletionssubstrate/primitives/io/src/lib.rs
- substrate/primitives/runtime-interface/Cargo.toml 2 additions, 1 deletionsubstrate/primitives/runtime-interface/Cargo.toml
- substrate/primitives/runtime-interface/src/pass_by.rs 3 additions, 3 deletionssubstrate/primitives/runtime-interface/src/pass_by.rs
- substrate/primitives/runtime-interface/test-wasm/Cargo.toml 1 addition, 0 deletionssubstrate/primitives/runtime-interface/test-wasm/Cargo.toml
- substrate/primitives/runtime-interface/test-wasm/src/lib.rs 20 additions, 0 deletionssubstrate/primitives/runtime-interface/test-wasm/src/lib.rs
- substrate/primitives/runtime-interface/test/src/lib.rs 57 additions, 15 deletionssubstrate/primitives/runtime-interface/test/src/lib.rs
Please register or sign in to comment