| commit | 77d09eaa95eb2d9552e5824e78d8a5d12c17cfef | [log] [tgz] |
|---|---|---|
| author | Adam Perry <adamperry@fuchsia.infra.roller.google.com> | Wed Dec 03 11:05:39 2025 -0800 |
| committer | Copybara-Service <copybara-worker@google.com> | Wed Dec 03 11:07:03 2025 -0800 |
| tree | 3e910291153e71e141f32190cb28e145504635d1 | |
| parent | d404ee39cb0bf4cad8c744dae5b71481b129cdc2 [diff] |
[roll] Roll fuchsia [network] std::sync -> fuchsia_sync
The behaviors of fuchsia_sync's locks are very similar to those from
the standard library. std::sync::Mutex is a port of the libsync
mutex that fuchsia_sync::Mutex links against, and fuchsia_sync::RwLock
is very similar to the std::sync::RwLock's futex-based approach. However
there are some important differences:
1. fuchsia_sync supports lock cycle detection which surfaces many
deadlocks. See the documentation[0] for more details.
2. fuchsia_sync doesn't support lock poisoning because most of
Fuchsia's code is compiled with panic=abort.
a. saves memory with smaller types
b. avoids noop error handling syntax and branches
[0]: https://fuchsia.dev/fuchsia-src/development/debugging/lock_cycles
Original-Bug: 465178981
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1439906
Original-Revision: 94e9126a0fbfa428013ee9bdf96eba5b5521e385
GitOrigin-RevId: 915f0737fa76e836a356a9c020b3cc63728b6edf
Change-Id: Ifb6a39943bdaacf5b783fe7bf7e43c2c5d1a0dd0
This repository contains Fuchsia's Global Integration manifest files.
All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.
Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.
First install Jiri.
Next run:
$ jiri init $ jiri import minimal https://fuchsia.googlesource.com/integration $ jiri update
Third party projects should have their own subdirectory in ./third_party.