Change information
Commit message:
[M140] heap: Fix inconsistencies in HeapObserverList
Original change's description:
> heap: Fix inconsistencies in HeapObserverList
>
> The observer list is both weak (implicitly managed) and allows for
> removing observers. If observers are removed while at the same time
> multiple other observers die, and the removal call triggers GC, this may
> lead to CHECK() failures where the index retrieved on `RemoveObserver`
> is too large for the `observers_` array.
>
> Bug: 438569732, 438916130
> Change-Id: I6731ad38e96f01a47258bc8f8f5a0b1b41e736a3
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6859882
> Commit-Queue: Michael Lippautz <mlip...@chromium.org>
> Reviewed-by: Anton Bikineev <biki...@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1503316}
Bug: 440101815,438569732,438916130
Change-Id: I6731ad38e96f01a47258bc8f8f5a0b1b41e736a3
Cr-Commit-Position: refs/branch-heads/7339@{#999}
Cr-Branched-From: 27be8b77710f4405fdfeb4ee946fcabb0f6c92b2-refs/heads/main@{#1496484}
Files:
- M third_party/blink/renderer/platform/heap_observer_list.h
Change size: S
Delta: 1 file changed, 11 insertions(+), 5 deletions(-)
Branch: refs/branch-heads/7339
Submit Requirements:
Code-Review: Bot-Commit+1 by Rubber Stamper