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

Issue 1940763002: Use Persistent to retain pointers on unittests (Closed)

Created:
4 years, 7 months ago by yhirano
Modified:
4 years, 7 months ago
Reviewers:
haraken, sof, yhirano1
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use Persistent to retain pointers on unittests This is a speculative fix for use-after-poison crashes on unittests. BUG=607994 Committed: https://crrev.com/97ee4076649fa2160880d9e070430b743766b128 Cr-Commit-Position: refs/heads/master@{#390889}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -8 lines) Patch
M third_party/WebKit/Source/modules/fetch/ReadableStreamDataConsumerHandleTest.cpp View 8 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
yhirano
4 years, 7 months ago (2016-05-02 03:43:24 UTC) #3
haraken
LGTM to try although I don't think this is related.
4 years, 7 months ago (2016-05-02 03:46:41 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1940763002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1940763002/1
4 years, 7 months ago (2016-05-02 03:51:21 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-05-02 04:06:18 UTC) #8
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/97ee4076649fa2160880d9e070430b743766b128 Cr-Commit-Position: refs/heads/master@{#390889}
4 years, 7 months ago (2016-05-02 04:07:27 UTC) #10
sof
sorry about the overhead... Cc: me on associated bug?
4 years, 7 months ago (2016-05-02 07:38:31 UTC) #12
sof
On 2016/05/02 07:38:31, sof wrote: > sorry about the overhead... Cc: me on associated bug? ...
4 years, 7 months ago (2016-05-02 08:14:26 UTC) #13
yhirano
Sorry for the late response. On 2016/05/02 08:14:26, sof wrote: > On 2016/05/02 07:38:31, sof ...
4 years, 7 months ago (2016-05-06 05:40:57 UTC) #14
sof
On 2016/05/06 05:40:57, yhirano wrote: > Sorry for the late response. > > On 2016/05/02 ...
4 years, 7 months ago (2016-05-06 06:46:03 UTC) #15
sof
On 2016/05/06 06:46:03, sof wrote: > On 2016/05/06 05:40:57, yhirano wrote: > > Sorry for ...
4 years, 7 months ago (2016-05-09 05:26:37 UTC) #16
yhirano
On 2016/05/09 05:26:37, sof wrote: > On 2016/05/06 06:46:03, sof wrote: > > On 2016/05/06 ...
4 years, 7 months ago (2016-05-09 05:29:20 UTC) #17
yhirano1
4 years, 7 months ago (2016-05-09 05:33:03 UTC) #18
Message was sent while issue was closed.
On 2016/05/09 05:29:20, yhirano wrote:
> On 2016/05/09 05:26:37, sof wrote:
> > On 2016/05/06 06:46:03, sof wrote:
> > > On 2016/05/06 05:40:57, yhirano wrote:
> > > > Sorry for the late response. 
> > > > 
> > > > On 2016/05/02 08:14:26, sof wrote:
> > > > > On 2016/05/02 07:38:31, sof wrote:
> > > > > > sorry about the overhead... Cc: me on associated bug?
> > > > > 
> > > > > thanks; it sounds as if you're working on this further, but eagerly
> > finalize
> > > > > MockClient?
> > > > 
> > > > To call ~StrictMock<MockClient> timely, right?
> > > 
> > > Hmm, I'm not sure who releases who here :) but given that a MockClient is
> > > accessed after it has been deemed garbage, eagerly releasing it seemed
like
> a
> > > cure. Looking closer, I don't think it would make a difference.
> > > 
> > > But, I now notice that ReadableStreamDataConsumerHandle::ReadingContext
> > doesn't
> > > keep a traced Member to its WebDataConsumerHandle::Client, but a bare
> pointer.
> > > That's not too nice & something we try to avoid, as it could well be a
heap
> > > pointer, so if the lifetime of that client pointer could be clarified,
> that'd
> > be
> > > good.
> > 
> > If not already, could you create a bug on this bare Client pointer, please?
We
> > should try to avoid having untraced to-heap pointers in the codebase.
> 
> I'll send a CL linked to the same crbug shortly.

Ah, I misunderstood, sorry. I'll create a bug...

Powered by Google App Engine
This is Rietveld 408576698