aboutsummaryrefslogtreecommitdiff
path: root/examples/boot
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2023-02-28 18:26:37 +0000
committerGitHub <[email protected]>2023-02-28 18:26:37 +0000
commitb16b3b0dbb16a46cee448b3a7656594a3001082e (patch)
treed4ed60a70d28cb5decf8eb89142273b27a63aedd /examples/boot
parentd719f8bc035485d19aff3ef76de0e1e7ba9d362e (diff)
parent3c601bf8d2624d6fa8fd8e68dfee5cb9348ab4f9 (diff)
Merge #1247
1247: `PacketQueue::init()` r=davidedellagiustina a=davidedellagiustina `PacketQueue` is pretty big, so I added a method to initialize it without requiring an allocation on the stack (which could in fact overflow). Before this PR, the only solution would be to declare a `PacketQueue` instance as a `static mut`, while now one could for example have a `Box<MaybeUninit<PacketQueue<...>>>` and then use `init()` on it. Ideally, the same work would need to be done for all those structures that own big arrays which could overflow the stack. Co-authored-by: Davide Della Giustina <[email protected]>
Diffstat (limited to 'examples/boot')
0 files changed, 0 insertions, 0 deletions