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

Issue 412173002: Oilpan: fix reported unit test leaks. (Closed)

Created:
6 years, 5 months ago by sof
Modified:
6 years, 5 months ago
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-dom_chromium.org, dglazkov+blink, dstockwell, eae+blinkwatch, Eric Willigers, Mike Lawther (Google), rjwright, rwlbuis, shans, sof, Steve Block, Timothy Loh, dcheng
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Oilpan: fix reported unit test leaks. Make some unit tests not rely on any external code triggering a GC to tidy up the resources they allocate on the heap. Prevents reporting of leaked test objects. R=haraken@chromium.org BUG= NOTRY=true Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178830

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -0 lines) Patch
M Source/core/animation/AnimationTimelineTest.cpp View 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/dom/DocumentTest.cpp View 2 chunks +8 lines, -0 lines 0 comments Download
M Source/modules/websockets/NewWebSocketChannelImplTest.cpp View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
haraken
Thanks for fixing this, LGTM!
6 years, 5 months ago (2014-07-24 09:31:07 UTC) #1
sof
Please take a look. This change in behavior is something that r178798 brought about (https://codereview.chromium.org/412683003). ...
6 years, 5 months ago (2014-07-24 09:36:48 UTC) #2
sof
The CQ bit was checked by sigbjornf@opera.com
6 years, 5 months ago (2014-07-24 09:39:07 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sigbjornf@opera.com/412173002/1
6 years, 5 months ago (2014-07-24 09:39:22 UTC) #4
commit-bot: I haz the power
Change committed as 178830
6 years, 5 months ago (2014-07-24 09:39:57 UTC) #5
dcheng
On 2014/07/24 at 09:39:57, commit-bot wrote: > Change committed as 178830 What was the change ...
6 years, 5 months ago (2014-07-24 17:35:53 UTC) #6
dcheng
On 2014/07/24 at 17:35:53, dcheng (OOO wrote: > On 2014/07/24 at 09:39:57, commit-bot wrote: > ...
6 years, 5 months ago (2014-07-24 17:42:00 UTC) #7
haraken
> > What was the change in behavior? How did external code trigger the GC? ...
6 years, 5 months ago (2014-07-25 00:54:43 UTC) #8
tyoshino (SeeGerritForStatus)
lgtm On 2014/07/25 00:54:43, haraken wrote: > > > What was the change in behavior? ...
6 years, 5 months ago (2014-07-25 03:41:42 UTC) #9
dcheng
6 years, 5 months ago (2014-07-25 23:29:08 UTC) #10
Message was sent while issue was closed.
On 2014/07/25 at 03:41:42, tyoshino wrote:
> lgtm
> 
> On 2014/07/25 00:54:43, haraken wrote:
> > > > What was the change in behavior? How did external code trigger the GC? I
> > don't
> > > fully see the connection.
> > 
> > External code can trigger a GC when it allocates an object on oilpan's heap.
> > That is very undeterministic. In order to make sure that all garbage is
> > collected at the end of a test, we need to explicitly trigger a GC at the
end of
> > the test.
> > 
> > > > Also, why can't we just call Heap::collectAllGarbage at the end of
> > > runHelper()?
> > 
> > Where is the runHelper()? If it's a method always executed at the end of
various
> > tests, it's definitely better to put Heap::collectAllGarbage into
runHelper().
> 
> FYI, yhirano@ is proposing addition of a helper for this.
>
https://codereview.chromium.org/407453002/diff/90001/Source/platform/testing/...

runHelper() is a small wrapper around the test launcher. It doesn't run at the
end of each test, but it runs right before we exit the test launcher completely:

https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit...

Powered by Google App Engine
This is Rietveld 408576698