commit | 59bc1cdc76fbc59fca53926939c58217b8c5fade | [log] [tgz] |
---|---|---|
author | Aaron Green <aarongreen@google.com> | Fri May 03 17:35:17 2024 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri May 03 17:35:17 2024 +0000 |
tree | d1de9435471975469546170b430fb98a7856a7cf | |
parent | 5b96d29bb8a6ff0e47393276da856f7ffbd6465d [diff] |
pw_allocator: Use singletons for stateless allocators LibCAllocator and NullAllocator are completely stateless. As a result, individual instances of these types are not needed, and all users share use statically initiallized global instances. Change-Id: I4fccb3dcdcff1cd32bac6dd7f0cab62ea739751b Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/207337 Reviewed-by: Taylor Cramer <cramertj@google.com> Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com> Commit-Queue: 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/.