commit | f20fedda2ab8af17becc8ab87b515891d692857e | [log] [tgz] |
---|---|---|
author | Jia Li <lizhijia@google.com> | Fri May 02 18:33:23 2025 -0700 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri May 02 18:33:23 2025 -0700 |
tree | 20e889537bb7b135d62dadb82c55ad58f5d53472 | |
parent | 162bf171de046e778386f4ad2000c4c4b126f846 [diff] |
[Symbolizer] Add mutex to symbolizer_new to prevent concurrent race condition Bug: 414868065 test: ffx profiler symbolize profile.pb new.pb --pprof-conversion false 82.48s user 24.28s system 880% cpu 12.117 total The `symbolizer_sys::symbolizer_new()` call was not thread-safe, leading to ffx call hang and profiler process exit when Symbolizer instances were created in parallel (e.g., by Rayon threads). Add a lock to it to prevent this issue. Change-Id: I25b2b1716c285c717e166170b8f55a04a4a8eec8 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1266446 Reviewed-by: Adam Perry <adamperry@google.com> Commit-Queue: Jia Li <lizhijia@google.com>
Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.
We expect everyone interacting with our project to respect our code of conduct.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.