[PA/E-LUD] Refactor: Fork LightweightQuarantine
`LightweightQuarantine` is a shared implementation between
Scheduler-Loop Quarantine and Extremely-Lightweight Use-after-Free
detector.
Despite initial insights, these days those two features are using
different strategies. E-LUD is using a globally shared one instance,
while SLQ is tied to ThreadCache for lock-less optimizations.
Since it is no longer efficient to share one implementation, this patch
duplicates the code and renames appropriately. See
https://crrev.com/c/6585717/23..24 for changes made after copying
`lightweight_quarantine.h` into `scheduler_loop_quarantine.h` and
`components/gwp_asan/client/extreme_lightweight_detector_quarantine.h`.
Change-Id: I45179a5783ce367e755632d5311d169271dc37fa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6585717
Reviewed-by: Yuki Shiino <yukishiino@chromium.org>
Reviewed-by: Sergei Glazunov <glazunov@google.com>
Commit-Queue: Mikihito Matsuura <mikt@google.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Keishi Hattori <keishi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1468678}
CrOS-Libchrome-Original-Commit: a37e602b9c472fd220340ed272da2c3dc0335f5b
23 files changed