commit | fc8c9140a89e057ebe1c75e93aa8ac3f3964ee6e | [log] [tgz] |
---|---|---|
author | Aaron Green <aarongreen@google.com> | Wed May 22 19:11:39 2024 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed May 22 19:11:39 2024 +0000 |
tree | 316c8639fed3a283861dee8cf92fa78a20057f10 | |
parent | e1cb6243812c803dfe980c1b0f63c2eaed1ce9b1 [diff] |
pw_allocator: Make Init methods infallible This CL ensures all concrete allocators have an `Init` method, and makes those methods infallible. Allowing an allocator to be created before assigning it a region of memory allows for usage patterns such as creating a singleton and then giving it a linker defined region of memory before `main`. Bug: 338389412 Change-Id: I380d6e567f2d38241112afe75bd33dc8cba775f8 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/209044 Commit-Queue: Aaron Green <aarongreen@google.com> Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.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/.