Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Issue 2773013002: Oilpan: isHeapObjectAlive should not return true for cross thread objects (Closed)

Created:
3 years, 9 months ago by keishi
Modified:
3 years, 8 months ago
Reviewers:
haraken, oilpan-reviews, sof
CC:
chromium-reviews, oilpan-reviews, Mads Ager (chromium), blink-reviews, kinuko+watch, kouhei+heap_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Oilpan: isHeapObjectAlive should not return true for cross thread objects isHeapObjectAlive was returning true for all cross thread objects. This was added in https://codereview.chromium.org/1909813002 because PersistentBase::checkPointer was calling isHeapObjectAlive with cross thread objects. The call to isHeapObjectAlive from PersistentBase::checkPointer was removed in https://codereview.chromium.org/2701273002 so this was no longer necessary. isHeapObjectAlive was being used during marking which meant cross thread objects were not being marked, skipping the DCHECK in marking, causing crbug.com/702527 and crbug.com/705872 to go undetected. BUG=705873 Review-Url: https://codereview.chromium.org/2773013002 Cr-Commit-Position: refs/heads/master@{#462009} Committed: https://chromium.googlesource.com/chromium/src/+/a93efbaa0146b717e42c78fd320074852822435a

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -3 lines) Patch
M third_party/WebKit/Source/platform/heap/Heap.h View 1 1 chunk +2 lines, -3 lines 2 comments Download

Messages

Total messages: 21 (14 generated)
keishi
I need to land https://codereview.chromium.org/2774223002/ first but PTAL.
3 years, 8 months ago (2017-03-28 19:36:05 UTC) #7
keishi
This bug caused crbug.com/702527 to go undetected. WIP but I'm hoping to also do something ...
3 years, 8 months ago (2017-03-28 19:40:44 UTC) #8
sof
https://codereview.chromium.org/2773013002/diff/20001/third_party/WebKit/Source/platform/heap/Heap.h File third_party/WebKit/Source/platform/heap/Heap.h (right): https://codereview.chromium.org/2773013002/diff/20001/third_party/WebKit/Source/platform/heap/Heap.h#newcode251 third_party/WebKit/Source/platform/heap/Heap.h:251: DCHECK(&ThreadState::current()->heap() == How does this work for CrossThreadWeakPersistent<> and ...
3 years, 8 months ago (2017-03-28 19:50:09 UTC) #10
sof
lgtm https://codereview.chromium.org/2773013002/diff/20001/third_party/WebKit/Source/platform/heap/Heap.h File third_party/WebKit/Source/platform/heap/Heap.h (right): https://codereview.chromium.org/2773013002/diff/20001/third_party/WebKit/Source/platform/heap/Heap.h#newcode251 third_party/WebKit/Source/platform/heap/Heap.h:251: DCHECK(&ThreadState::current()->heap() == On 2017/03/28 19:50:09, sof wrote: > ...
3 years, 8 months ago (2017-03-28 20:02:07 UTC) #11
haraken
LGTM
3 years, 8 months ago (2017-03-29 06:55:44 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2773013002/20001
3 years, 8 months ago (2017-04-05 06:06:05 UTC) #18
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 08:35:07 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/a93efbaa0146b717e42c78fd3200...

Powered by Google App Engine
This is Rietveld 408576698