[scudo] Accessing PossibleRegions requires lock
authorChia-hung Duan <chiahungduan@google.com>
Fri, 24 Feb 2023 01:59:01 +0000 (01:59 +0000)
committerChia-hung Duan <chiahungduan@google.com>
Fri, 24 Feb 2023 04:15:33 +0000 (04:15 +0000)
commit6860d1c6e44f3e0a0d182f58b3848f720b5ade59
tree20b793de1137c012307a9bc225dfbaf7abbd6495
parent366d34b39e432abff724f644adbff8d627d6f27c
[scudo] Accessing PossibleRegions requires lock

It is preferable to use `std::shared_mutex` style mutex. Will switch to
using it when it's available.

Differential Revision: https://reviews.llvm.org/D144691
compiler-rt/lib/scudo/standalone/primary32.h