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

Issue 2715713005: Verify that a new heap page isn't also marked as being off heap. (Closed)

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

Description

Verify that a new heap page isn't also marked as being off heap. Attempt to diagnose a rare assert failure, where a conservative GC stack scan finds a potential pointer in both the heap's negative heap page cache and in the map of in-use heap pages. Those two mapping should be mutually exclusive by construction, and must be -- the negative page cache must not contain false positives. Hence, add verification when a new page is committed & used, it does not already have a mapping in that negative cache. R=haraken BUG=649485 Review-Url: https://codereview.chromium.org/2715713005 Cr-Commit-Position: refs/heads/master@{#452833} Committed: https://chromium.googlesource.com/chromium/src/+/7c787e8cafaa3b13951ce38c76e0ebefb31ff454

Patch Set 1 #

Total comments: 2

Patch Set 2 : switch to CHECK() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -0 lines) Patch
M third_party/WebKit/Source/platform/heap/PageMemory.h View 1 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/ThreadState.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/ThreadState.cpp View 1 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (13 generated)
sof
please take a look. i'm failing to understand how the assert on the associated bug ...
3 years, 10 months ago (2017-02-24 13:10:28 UTC) #4
haraken
LGTM https://codereview.chromium.org/2715713005/diff/1/third_party/WebKit/Source/platform/heap/PageMemory.h File third_party/WebKit/Source/platform/heap/PageMemory.h (right): https://codereview.chromium.org/2715713005/diff/1/third_party/WebKit/Source/platform/heap/PageMemory.h#newcode185 third_party/WebKit/Source/platform/heap/PageMemory.h:185: DCHECK(!ThreadState::current()->isAddressInHeapDoesNotContainCache( I'm fine with using a CHECK given ...
3 years, 10 months ago (2017-02-24 13:21:22 UTC) #6
sof
https://codereview.chromium.org/2715713005/diff/1/third_party/WebKit/Source/platform/heap/PageMemory.h File third_party/WebKit/Source/platform/heap/PageMemory.h (right): https://codereview.chromium.org/2715713005/diff/1/third_party/WebKit/Source/platform/heap/PageMemory.h#newcode185 third_party/WebKit/Source/platform/heap/PageMemory.h:185: DCHECK(!ThreadState::current()->isAddressInHeapDoesNotContainCache( On 2017/02/24 13:21:22, haraken wrote: > > I'm ...
3 years, 10 months ago (2017-02-24 13:54:37 UTC) #9
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/2715713005/20001
3 years, 10 months ago (2017-02-24 15:41:06 UTC) #15
commit-bot: I haz the power
3 years, 10 months ago (2017-02-24 15:45:46 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/7c787e8cafaa3b13951ce38c76e0...

Powered by Google App Engine
This is Rietveld 408576698