roll: pigweed pw_bytes: Add PackedPtr
Every object types has an alignment requirement, and for most types this
is greater than one. As a result, pointers to these types have one or
more least significant bits that are always zero. For certain types,
such as intrusive container types, it is desirable to reuse these bits
and avoid creating additional fields.
This class facilitates those use cases by providing a wrapper type that
can be treated like a pointer in many cases, but that can also be used
to set and get a value from the unused bits.
This storage is not free: this class must perform bit operations on
every dereference, adding to its performance cost and code size. This
class should only be used when the benefits of saving memory overhead
outweigh these costs.
Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/235104
Original-Revision: cda5ba673366d189e0ea326a0fa808df181730a7
Rolled-Repo: https://pigweed.googlesource.com/pigweed/pigweed
Rolled-Commits: faac61757b5428..cda5ba673366d1
Roller-URL: https://ci.chromium.org/b/8736437843974743713
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: Ib8de5dd948a3cb3a6eb0f46a56796729fe2a49b9
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/quickstart/bazel/+/236774
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
diff --git a/MODULE.bazel b/MODULE.bazel
index 3f424ee..6e1a5d4 100644
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -49,8 +49,8 @@
module_name = "pigweed",
# ROLL: Warning: this entry is automatically updated.
# ROLL: Last updated 2024-09-18.
- # ROLL: By https://cr-buildbucket.appspot.com/build/8736438250349641985.
- commit = "faac61757b5428be3787729d328f6f2f3ebfa9f1",
+ # ROLL: By https://cr-buildbucket.appspot.com/build/8736437843974743713.
+ commit = "cda5ba673366d189e0ea326a0fa808df181730a7",
remote = "https://pigweed.googlesource.com/pigweed/pigweed",
)
@@ -58,8 +58,8 @@
module_name = "pw_toolchain",
# ROLL: Warning: this entry is automatically updated.
# ROLL: Last updated 2024-09-18.
- # ROLL: By https://cr-buildbucket.appspot.com/build/8736438250349641985.
- commit = "faac61757b5428be3787729d328f6f2f3ebfa9f1",
+ # ROLL: By https://cr-buildbucket.appspot.com/build/8736437843974743713.
+ commit = "cda5ba673366d189e0ea326a0fa808df181730a7",
remote = "https://pigweed.googlesource.com/pigweed/pigweed",
strip_prefix = "pw_toolchain_bazel",
)