pw_system: Add synchronization to pw::System allocator This global allocator was missing synchronization leading to heap corruption as observed in b/352592037. In the future, this allocator should be merged with our other global allocator, pw_malloc, as detailed in b/352818465. Bug: b/352592037 Bug: b/352818465 Change-Id: Ia841b80ecf48957476406caa1a40d71250f3c2aa Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/222794 Reviewed-by: Alexei Frolov <frolv@google.com> Commit-Queue: Taylor Cramer <cramertj@google.com> Reviewed-by: Wyatt Hepler <hepler@google.com> Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.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/.