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

Issue 2464273002: Fix ThreadHeap::isHeapObjectAlive(const T*& ptr) stack overflow. (Closed)

Created:
4 years, 1 month ago by chcunningham
Modified:
4 years, 1 month ago
Reviewers:
haraken
CC:
chromium-reviews, blink-reviews, kouhei+heap_chromium.org, oilpan-reviews, Mads Ager (chromium)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix ThreadHeap::isHeapObjectAlive(const T*& ptr) stack overflow. Prior to this change, the method simply called itself. On debug builds this manifests as a stack overflow. On release builds the assembly optimizations result in a jump instruction that jumps to itself - render proc will appear hung. TEST=new blink_heap_unittest BUG=661363 Committed: https://crrev.com/92cc84f200b7839f220a26633f1ba8983ea361aa Cr-Commit-Position: refs/heads/master@{#429530}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Delete comments #

Total comments: 3

Patch Set 3 : Fix test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -7 lines) Patch
M third_party/WebKit/Source/platform/heap/Heap.h View 1 4 chunks +3 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/HeapTest.cpp View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (18 generated)
chcunningham
https://codereview.chromium.org/2464273002/diff/1/third_party/WebKit/Source/platform/heap/HeapTest.cpp File third_party/WebKit/Source/platform/heap/HeapTest.cpp (right): https://codereview.chromium.org/2464273002/diff/1/third_party/WebKit/Source/platform/heap/HeapTest.cpp#newcode3932 third_party/WebKit/Source/platform/heap/HeapTest.cpp:3932: // { I'd like to test the isHeapObjectAlive = ...
4 years, 1 month ago (2016-11-01 23:26:05 UTC) #5
haraken
LGTM https://codereview.chromium.org/2464273002/diff/20001/third_party/WebKit/Source/platform/heap/HeapTest.cpp File third_party/WebKit/Source/platform/heap/HeapTest.cpp (right): https://codereview.chromium.org/2464273002/diff/20001/third_party/WebKit/Source/platform/heap/HeapTest.cpp#newcode3942 third_party/WebKit/Source/platform/heap/HeapTest.cpp:3942: // } Can we remove this comment? It's ...
4 years, 1 month ago (2016-11-02 01:12:47 UTC) #10
chcunningham
https://codereview.chromium.org/2464273002/diff/20001/third_party/WebKit/Source/platform/heap/HeapTest.cpp File third_party/WebKit/Source/platform/heap/HeapTest.cpp (right): https://codereview.chromium.org/2464273002/diff/20001/third_party/WebKit/Source/platform/heap/HeapTest.cpp#newcode3942 third_party/WebKit/Source/platform/heap/HeapTest.cpp:3942: // } On 2016/11/02 01:12:47, haraken wrote: > > ...
4 years, 1 month ago (2016-11-02 01:19:06 UTC) #11
haraken
https://codereview.chromium.org/2464273002/diff/20001/third_party/WebKit/Source/platform/heap/HeapTest.cpp File third_party/WebKit/Source/platform/heap/HeapTest.cpp (right): https://codereview.chromium.org/2464273002/diff/20001/third_party/WebKit/Source/platform/heap/HeapTest.cpp#newcode3942 third_party/WebKit/Source/platform/heap/HeapTest.cpp:3942: // } On 2016/11/02 01:19:06, chcunningham wrote: > On ...
4 years, 1 month ago (2016-11-02 01:22:30 UTC) #12
chcunningham
On 2016/11/02 01:22:30, haraken wrote: > https://codereview.chromium.org/2464273002/diff/20001/third_party/WebKit/Source/platform/heap/HeapTest.cpp > File third_party/WebKit/Source/platform/heap/HeapTest.cpp (right): > > https://codereview.chromium.org/2464273002/diff/20001/third_party/WebKit/Source/platform/heap/HeapTest.cpp#newcode3942 > ...
4 years, 1 month ago (2016-11-02 19:20:09 UTC) #17
haraken
On 2016/11/02 19:20:09, chcunningham wrote: > On 2016/11/02 01:22:30, haraken wrote: > > > https://codereview.chromium.org/2464273002/diff/20001/third_party/WebKit/Source/platform/heap/HeapTest.cpp ...
4 years, 1 month ago (2016-11-03 02:43:42 UTC) #20
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/2464273002/40001
4 years, 1 month ago (2016-11-03 05:41:26 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-03 05:45:58 UTC) #25
commit-bot: I haz the power
4 years, 1 month ago (2016-11-03 05:48:16 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/92cc84f200b7839f220a26633f1ba8983ea361aa
Cr-Commit-Position: refs/heads/master@{#429530}

Powered by Google App Engine
This is Rietveld 408576698