Skip to content
Commit 06505716 authored by Hannes Payer's avatar Hannes Payer Committed by Chromium LUCI CQ
Browse files

PCScan: Fix race in scan scheduling heuristic to avoid useless scans.

Instead of comparing the scan limit with the current quarantine size,
we decrement the limit. The first deallocation that makes it negative
triggers the scan. With that the state is atomic.

Bug: 11297512
Change-Id: I50516866913984ad69041efc269471870f4097a7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2774979


Commit-Queue: Hannes Payer <hpayer@chromium.org>
Reviewed-by: default avatarMichael Lippautz <mlippautz@chromium.org>
Reviewed-by: default avatarAnton Bikineev <bikineev@chromium.org>
Cr-Commit-Position: refs/heads/master@{#866187}
parent 76711354
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment