Files
pezkuwi-subxt/substrate/primitives/allocator
Sergei Shulepov aba0128f6f bump-allocator: document & poison (#7277)
* bump-allocator: refine comments

* Rename EMPTY_MARKER to Nil

It's a misnomer since it doesn't actually denote an empty list as it might suggest but rather the end of a list. So I borrowed Nil from Cons/Nil.I could've gone with Null, especially considering that the variant name is already named `Null`, but I preferred `Nil` because the NIL_MARKER is not 0 as `null` may suggest, but rather 0xFFFFFFFF.

* Rename N to N_ORDERS; docs;

Supply a, hopefully, more readable comment as well.

* allocator poisoning: document and enforce.

* Review: Fix line wrapping for a call

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>

* add a test on oom

* Update primitives/allocator/src/freeing_bump.rs

* Make ui tests happy

Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
Co-authored-by: Bastian Köcher <git@kchr.de>
2020-10-08 11:40:52 +00:00
..
2020-09-22 19:47:38 +02:00
2020-08-20 17:04:42 +02:00

Collection of allocator implementations.

This crate provides the following allocator implementations:

  • A freeing-bump allocator: FreeingBumpHeapAllocator

License: Apache-2.0