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

Issue 1306083008: Fix ScriptState leak in ScriptPromiseProperty unittests. (Closed)

Created:
5 years, 3 months ago by yhirano
Modified:
5 years, 3 months ago
Reviewers:
haraken, sof
CC:
blink-reviews, vivekg, blink-reviews-bindings_chromium.org, vivekg_samsung
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Fix ScriptState leak in ScriptPromiseProperty unittests. BUG=526608 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201468

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -8 lines) Patch
M Source/bindings/core/v8/ScriptPromisePropertyTest.cpp View 1 2 3 4 chunks +9 lines, -8 lines 7 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (3 generated)
yhirano
5 years, 3 months ago (2015-08-31 06:18:49 UTC) #2
haraken
LGTM
5 years, 3 months ago (2015-08-31 06:21:00 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1306083008/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1306083008/60001
5 years, 3 months ago (2015-08-31 06:21:59 UTC) #5
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://src.chromium.org/viewvc/blink?view=rev&revision=201468
5 years, 3 months ago (2015-08-31 06:42:54 UTC) #6
sof
https://codereview.chromium.org/1306083008/diff/60001/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp File Source/bindings/core/v8/ScriptPromisePropertyTest.cpp (right): https://codereview.chromium.org/1306083008/diff/60001/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp#newcode153 Source/bindings/core/v8/ScriptPromisePropertyTest.cpp:153: Heap::collectAllGarbage(); Incidental to this CL, but having the name ...
5 years, 3 months ago (2015-08-31 06:44:40 UTC) #8
haraken
https://codereview.chromium.org/1306083008/diff/60001/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp File Source/bindings/core/v8/ScriptPromisePropertyTest.cpp (right): https://codereview.chromium.org/1306083008/diff/60001/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp#newcode153 Source/bindings/core/v8/ScriptPromisePropertyTest.cpp:153: Heap::collectAllGarbage(); On 2015/08/31 06:44:40, sof wrote: > Incidental to ...
5 years, 3 months ago (2015-08-31 06:46:43 UTC) #9
sof
https://codereview.chromium.org/1306083008/diff/60001/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp File Source/bindings/core/v8/ScriptPromisePropertyTest.cpp (right): https://codereview.chromium.org/1306083008/diff/60001/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp#newcode153 Source/bindings/core/v8/ScriptPromisePropertyTest.cpp:153: Heap::collectAllGarbage(); On 2015/08/31 06:46:42, haraken wrote: > On 2015/08/31 ...
5 years, 3 months ago (2015-08-31 06:50:22 UTC) #10
haraken
https://codereview.chromium.org/1306083008/diff/60001/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp File Source/bindings/core/v8/ScriptPromisePropertyTest.cpp (right): https://codereview.chromium.org/1306083008/diff/60001/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp#newcode153 Source/bindings/core/v8/ScriptPromisePropertyTest.cpp:153: Heap::collectAllGarbage(); On 2015/08/31 06:50:22, sof wrote: > On 2015/08/31 ...
5 years, 3 months ago (2015-08-31 06:55:52 UTC) #11
sof
https://codereview.chromium.org/1306083008/diff/60001/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp File Source/bindings/core/v8/ScriptPromisePropertyTest.cpp (right): https://codereview.chromium.org/1306083008/diff/60001/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp#newcode153 Source/bindings/core/v8/ScriptPromisePropertyTest.cpp:153: Heap::collectAllGarbage(); On 2015/08/31 06:55:52, haraken wrote: > On 2015/08/31 ...
5 years, 3 months ago (2015-08-31 06:58:34 UTC) #12
sof
https://codereview.chromium.org/1306083008/diff/60001/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp File Source/bindings/core/v8/ScriptPromisePropertyTest.cpp (right): https://codereview.chromium.org/1306083008/diff/60001/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp#newcode153 Source/bindings/core/v8/ScriptPromisePropertyTest.cpp:153: Heap::collectAllGarbage(); On 2015/08/31 06:58:34, sof wrote: > On 2015/08/31 ...
5 years, 3 months ago (2015-08-31 07:03:46 UTC) #13
haraken
On 2015/08/31 07:03:46, sof wrote: > https://codereview.chromium.org/1306083008/diff/60001/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp > File Source/bindings/core/v8/ScriptPromisePropertyTest.cpp (right): > > https://codereview.chromium.org/1306083008/diff/60001/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp#newcode153 > ...
5 years, 3 months ago (2015-08-31 07:04:38 UTC) #14
haraken
On 2015/08/31 07:04:38, haraken wrote: > On 2015/08/31 07:03:46, sof wrote: > > > https://codereview.chromium.org/1306083008/diff/60001/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp ...
5 years, 3 months ago (2015-08-31 07:05:34 UTC) #15
yhirano
https://codereview.chromium.org/1306083008/diff/60001/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp File Source/bindings/core/v8/ScriptPromisePropertyTest.cpp (right): https://codereview.chromium.org/1306083008/diff/60001/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp#newcode153 Source/bindings/core/v8/ScriptPromisePropertyTest.cpp:153: Heap::collectAllGarbage(); On 2015/08/31 07:03:46, sof wrote: > On 2015/08/31 ...
5 years, 3 months ago (2015-08-31 07:10:44 UTC) #16
sof
On 2015/08/31 07:05:34, haraken wrote: > ... > But gc() runs only one RequestGarbageCollectionForTesting(). So ...
5 years, 3 months ago (2015-08-31 07:11:25 UTC) #17
haraken
On 2015/08/31 07:11:25, sof wrote: > On 2015/08/31 07:05:34, haraken wrote: > > > ...
5 years, 3 months ago (2015-08-31 07:12:25 UTC) #18
haraken
On 2015/08/31 07:10:44, yhirano wrote: > https://codereview.chromium.org/1306083008/diff/60001/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp > File Source/bindings/core/v8/ScriptPromisePropertyTest.cpp (right): > > https://codereview.chromium.org/1306083008/diff/60001/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp#newcode153 > ...
5 years, 3 months ago (2015-08-31 07:16:44 UTC) #19
sof
On 2015/08/31 07:16:44, haraken wrote: > On 2015/08/31 07:10:44, yhirano wrote: > > > https://codereview.chromium.org/1306083008/diff/60001/Source/bindings/core/v8/ScriptPromisePropertyTest.cpp ...
5 years, 3 months ago (2015-08-31 07:33:47 UTC) #20
yhirano
On 2015/08/31 07:33:47, sof wrote: > On 2015/08/31 07:16:44, haraken wrote: > > On 2015/08/31 ...
5 years, 3 months ago (2015-08-31 07:43:48 UTC) #21
sof
5 years, 3 months ago (2015-08-31 07:49:41 UTC) #22
Message was sent while issue was closed.
On 2015/08/31 07:43:48, yhirano wrote:
> On 2015/08/31 07:33:47, sof wrote:
> > On 2015/08/31 07:16:44, haraken wrote:
> > > On 2015/08/31 07:10:44, yhirano wrote:
> > > >
> > > > (snip)
> > > > Once I was told that relying on the conservative GC might make tests
> flaky.
> > I
> > > > want to ensure the holder wrapper which was stored in
> > > > ScriptPromisePropertyGarbageCollectedTest::m_holder is collected.
> > > 
> > > Ah, that makes sense...
> > 
> > But the tests here adds Persistent<>s to retain objects, so how are
m_holders
> > verifiedly collected across uses of destroyContext() ?
> 
> Sorry my memory was confused. I thought m_holder's aliveness affects the test
> results, but it seems not.
> I now think no garbage collection is needed in destroyContext().
> https://codereview.chromium.org/1322673003/

ok, i started an Oilpan trybot for that one also.

Powered by Google App Engine
This is Rietveld 408576698