Description[heap] Adjust condition for AdjustLiveBytes to avoid concurrent access w/ sweeper
A concurrent sweeper thread can access the same markbit cell as the main thread
during right trimming a fixed array, resulting in a data race on a markbit cell.
Previously we checked whether we were currently marking incrementally, filtering
out this case.
The current check has the benefit of keeping live_bytes accurate (modulo other
bugs) until the sweeper starts.
BUG=chromium:576193
LOG=N
Committed: https://crrev.com/779aa924f6d0066fe134ccbdc2abb9e5e15e100f
Cr-Commit-Position: refs/heads/master@{#33203}
Patch Set 1 #
Total comments: 2
Messages
Total messages: 10 (5 generated)
|