commit | fce539a9f31933ec69a148beef7257b5bd630156 | [log] [tgz] |
---|---|---|
author | Ted Pudlik <tpudlik@google.com> | Tue Nov 15 00:47:37 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Nov 15 00:47:37 2022 +0000 |
tree | 6d71794f8f599ca3d166e736aab3cbdb907749da | |
parent | af4b887230dfa2b857ae9b5ffdd26968d9e0e954 [diff] |
pw_allocator: Remove mutable default value Avoid unintentional sharing of the default value between instances of HeapUsage. This has always been a bug, but will become a runtime exception in Python 3.11 (https://docs.python.org/3/library/dataclasses.html#mutable-default-values, https://stackoverflow.com/q/53632152/1224002). Bug: 259121920 Change-Id: I0315a917316ae9f3bcf59e1015446f572dbbb7b5 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/119312 Reviewed-by: Alexei Frolov <frolv@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Pigweed-Auto-Submit: Ted Pudlik <tpudlik@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/.