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

Issue 1714613003: BodyStreamBuffer should release WebDataConsumerHandle::Reader eagerly (Closed)

Created:
4 years, 10 months ago by yhirano
Modified:
4 years, 10 months ago
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

BodyStreamBuffer should release WebDataConsumerHandle::reader eagerly WebDataConsumerHandle requires its registered client to be alive. Relying the cleanup in the destructor is generally not safe because unreachable on-heap objects are invalid even when they are not yet finalized. BUG=587987, 576587 Committed: https://crrev.com/5d36d48c374ebb1ea64f8a5ab073885377db6c9b Cr-Commit-Position: refs/heads/master@{#376524}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (11 generated)
yhirano
This is a speculative crash-fix. oilpan-reviews: can any of you take a look if I'm ...
4 years, 10 months ago (2016-02-18 23:56:08 UTC) #5
hiroshige
lgtm
4 years, 10 months ago (2016-02-19 01:51:13 UTC) #7
sof
https://codereview.chromium.org/1714613003/diff/1/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h File third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h (right): https://codereview.chromium.org/1714613003/diff/1/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h#newcode28 third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h:28: USING_PRE_FINALIZER(BodyStreamBuffer, stop); This prefinalizer (and its registration) is correct, ...
4 years, 10 months ago (2016-02-19 06:17:11 UTC) #9
yhirano
https://codereview.chromium.org/1714613003/diff/1/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h File third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h (right): https://codereview.chromium.org/1714613003/diff/1/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h#newcode28 third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h:28: USING_PRE_FINALIZER(BodyStreamBuffer, stop); On 2016/02/19 06:17:11, sof wrote: > This ...
4 years, 10 months ago (2016-02-19 06:36:23 UTC) #10
sof
On 2016/02/19 06:36:23, yhirano wrote: > https://codereview.chromium.org/1714613003/diff/1/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h > File third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h (right): > > https://codereview.chromium.org/1714613003/diff/1/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h#newcode28 > ...
4 years, 10 months ago (2016-02-19 06:41:32 UTC) #11
yhirano
Thank you, fixed. https://codereview.chromium.org/1714613003/diff/1/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h File third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h (right): https://codereview.chromium.org/1714613003/diff/1/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h#newcode74 third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h:74: const Member<ReadableByteStream> m_stream; On 2016/02/19 06:17:11, ...
4 years, 10 months ago (2016-02-19 17:32:22 UTC) #13
haraken
LGTM
4 years, 10 months ago (2016-02-19 17:33:04 UTC) #14
sof
lgtm https://codereview.chromium.org/1714613003/diff/20001/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h File third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h (right): https://codereview.chromium.org/1714613003/diff/20001/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h#newcode28 third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h:28: EAGERLY_FINALIZE(); Add an explanatory comment so as to ...
4 years, 10 months ago (2016-02-19 18:34:26 UTC) #15
yhirano
https://codereview.chromium.org/1714613003/diff/20001/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h File third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h (right): https://codereview.chromium.org/1714613003/diff/20001/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h#newcode28 third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h:28: EAGERLY_FINALIZE(); On 2016/02/19 18:34:26, sof wrote: > Add an ...
4 years, 10 months ago (2016-02-19 18:45:20 UTC) #16
yhirano
https://codereview.chromium.org/1714613003/diff/20001/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h File third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h (right): https://codereview.chromium.org/1714613003/diff/20001/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h#newcode28 third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h:28: EAGERLY_FINALIZE(); On 2016/02/19 18:34:26, sof wrote: > Add an ...
4 years, 10 months ago (2016-02-19 18:45:20 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1714613003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1714613003/40001
4 years, 10 months ago (2016-02-19 18:48:22 UTC) #20
sof
I can't view the associated bugs, but I reckon the change here will do some ...
4 years, 10 months ago (2016-02-19 18:53:51 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-19 20:15:00 UTC) #23
commit-bot: I haz the power
4 years, 10 months ago (2016-02-19 20:16:27 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/5d36d48c374ebb1ea64f8a5ab073885377db6c9b
Cr-Commit-Position: refs/heads/master@{#376524}

Powered by Google App Engine
This is Rietveld 408576698