commit | f4aaf3e2566c18495f56a80756af30840242c2d0 | [log] [tgz] |
---|---|---|
author | Aaron Green <aarongreen@google.com> | Wed Feb 07 20:16:27 2024 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Feb 07 20:16:27 2024 +0000 |
tree | dec210ece47c1bcbe2c671f5b7d07ed2dcb2b2ef | |
parent | 2e5201bfb6b53ac37dd06c262dd1a263a37f2968 [diff] |
pw_allocator: Streamline Block and improve testing This CL removes the custom flags and extra bytes from Block, as they can be more directed implemented in the few cases where they have been needed by simply allocating extra space. It also modifies how poisoning is enabled, allowing the creation of explicitly poisoned blocks independent of `pw_allocator_POISON_HEAP`. This allows testing the poisoning code independent of that build argument. Finally, it introduces a `TEST_FOR_EACH_BLOCK_TYPE` macro to make it easier to apply unit tests to block types that are poisoned, unpoisoned, and/or have different offset types. Change-Id: Ief02f62e8e5dca84a604fc60384406673ce94953 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/187656 Commit-Queue: Aaron Green <aarongreen@google.com> Reviewed-by: Taylor Cramer <cramertj@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.