Attention needed from Owners Override
Adam Barth has uploaded the change for review![Open in Gerrit]()
Adam Barth would like Owners Override to review this change.
Commit message
[kstring] Add crate for kernel strings
This CL adds a crate for working with string in the kernel. The first
feature of this crate is support for fxt::InternedString, see
src/performance/lib/fxt/include/lib/fxt/interned_string.h.
This crate makes interned strings in the same linker section as the fxt
library, but the string pointers are not deduplicated, which means if a
string is used by Rust and C++, we'll end up with two entries for that
string in the linker section.
This support is needed to make Zircon kernel mutexes work in Rust
because Zircon uses these interned strings to define class names for
Zircon mutexes.
Bug: b/516863941
Change-Id: Ib2952389bdd2456f9b8f02860cdbafc6a28f2c73
Change information
Files:
- M src/lib/BUILD.gn
- A src/lib/kstring/BUILD.gn
- A src/lib/kstring/OWNERS
- A src/lib/kstring/src/interned_string.rs
- A src/lib/kstring/src/lib.rs
Change size: M
Delta: 5 files changed, 178 insertions(+), 0 deletions(-)
Open in GerritRelated details
Attention is currently required from:
Gerrit-MessageType: newchange
Gerrit-Project: fuchsia
Gerrit-Branch: main
Gerrit-Change-Id: Ib2952389bdd2456f9b8f02860cdbafc6a28f2c73
Gerrit-Change-Number: 1628776
Gerrit-PatchSet: 2
You received this message because you are subscribed to the Google Groups "owners-override" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
.