roll: pigweed pw_allocator: Store TestHarness::Allocation inline
This module include a TestHarness class which can generate requests for
an allocator to allocate, reallocate and deallocate regions of memory.
Previously, this harness took a vector of Allocation structs that was
used to stored the details of these requests. This allowed, for example,
the test harness to deallocate memory that had previously been
allocated.
Requiring this vector could result in significant overhead if a
substantial number of allocations were to be tested at once. This
overhead is unecessary though, as there is another place to store the
request details: in the allocations themselves!
This change sets a minimum size and alignment on requests. It makes the
Allocation struct an IntrusiveList item, and stores the Allocations in
the allocated memory.
Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/230894
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
Original-Revision: a4dab0be18a649c79759880308ed051b0a2576a4
Rolled-Repo: https://pigweed.googlesource.com/pigweed/pigweed
Rolled-Commits: e81f65b16a544f..a4dab0be18a649
Roller-URL: https://ci.chromium.org/b/8735891826557424705
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I3e7a1a25b9d9352e0d80453fa2dcc117f7f37867
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/showcase/sense/+/237595
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
diff --git a/MODULE.bazel b/MODULE.bazel
index 83df4f8..f3cf537 100644
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -50,8 +50,8 @@
module_name = "pigweed",
# ROLL: Warning: this entry is automatically updated.
# ROLL: Last updated 2024-09-24.
- # ROLL: By https://cr-buildbucket.appspot.com/build/8735893034970789345.
- commit = "e81f65b16a544f0a5d4ed98ebedece785379faca",
+ # ROLL: By https://cr-buildbucket.appspot.com/build/8735891826557424705.
+ commit = "a4dab0be18a649c79759880308ed051b0a2576a4",
remote = "https://pigweed.googlesource.com/pigweed/pigweed",
)
@@ -59,8 +59,8 @@
module_name = "pw_toolchain",
# ROLL: Warning: this entry is automatically updated.
# ROLL: Last updated 2024-09-24.
- # ROLL: By https://cr-buildbucket.appspot.com/build/8735893034970789345.
- commit = "e81f65b16a544f0a5d4ed98ebedece785379faca",
+ # ROLL: By https://cr-buildbucket.appspot.com/build/8735891826557424705.
+ commit = "a4dab0be18a649c79759880308ed051b0a2576a4",
remote = "https://pigweed.googlesource.com/pigweed/pigweed",
strip_prefix = "pw_toolchain_bazel",
)