Skip to content

Commit edec1ff

Browse files
Update from github-actions[bot] running command 'prdoc --audience node_dev --bump patch'
1 parent 6c635d8 commit edec1ff

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

prdoc/pr_12801.prdoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
title: 'allocator: make the max single allocation overridable at build time'
2+
doc:
3+
- audience: Node Dev
4+
description: |-
5+
# Description
6+
7+
The freeing-bump allocator caps a single runtime allocation at 32 MiB, so a large runtime API result that needs one contiguous buffer bigger than that traps. The motivating case is a full block execution trace: pallet-revive's `struct_logs` buffer crosses 32 MiB on long transactions and `ReviveApi_trace_*` fails with `RequestedAllocationTooLarge`.
8+
9+
This adds a build-time override, `SUBSTRATE_MAX_RUNTIME_ALLOCATION_MIB` (MiB,
10+
32 to 2048, rounded up to a power of two), read via `option_env!`. `N_ORDERS` is derived from the resolved cap.
11+
crates:
12+
- name: sc-allocator
13+
bump: patch

0 commit comments

Comments
 (0)