[NFC][lsan] Use hash table to track root regions
authorVitaly Buka <vitalybuka@google.com>
Wed, 31 May 2023 07:08:02 +0000 (00:08 -0700)
committerVitaly Buka <vitalybuka@google.com>
Fri, 2 Jun 2023 21:38:01 +0000 (14:38 -0700)
commit99dc68387bc0071fb01050e90c4359307beba92e
treea35c68fe7d21b075c8c9abc7a557962a398b0ce6
parent0375a2dc7d090cd43d8bf54f35ef381854d40cb6
[NFC][lsan] Use hash table to track root regions

This avoid O(N) in __lsan_unregister_root_region.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D151784
compiler-rt/lib/lsan/lsan_common.cpp