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

Issue 240001: Force garbage collection after running any unit tests that initialize WebViews. (Closed)

Created:
11 years, 3 months ago by jorlow
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, Erik does not do reviews, jam, pam+watch_chromium.org, Paweł Hajdan Jr., brettw, tim (not reviewing)
Visibility:
Public.

Description

Force garbage collection after running any unit tests that initialize WebViews. It's quite possible that we just plain shouldn't allow any unit tests to initialize WebKit for philosophical and theoretical reasons. But this does seem to work, so I guess we should just go this route for now. BUG=22971 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=27239

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -14 lines) Patch
M chrome/renderer/extensions/json_schema_unittest.cc View 1 chunk +11 lines, -14 lines 0 comments Download
M chrome/test/render_view_test.cc View 3 chunks +8 lines, -0 lines 2 comments Download

Messages

Total messages: 6 (0 generated)
jorlow
11 years, 3 months ago (2009-09-25 01:17:54 UTC) #1
darin (slow to review)
http://codereview.chromium.org/240001/diff/1/2 File webkit/api/src/ChromiumBridge.cpp (right): http://codereview.chromium.org/240001/diff/1/2#newcode372 Line 372: webKitClient()->suddenTerminationChanged(enabled); ugh... we should either universally null check ...
11 years, 3 months ago (2009-09-25 06:34:55 UTC) #2
jorlow
New patch and a new approach.
11 years, 3 months ago (2009-09-25 18:25:16 UTC) #3
darin (slow to review)
LGTM http://codereview.chromium.org/240001/diff/3001/4002 File chrome/test/render_view_test.cc (right): http://codereview.chromium.org/240001/diff/3001/4002#newcode114 Line 114: ProcessPendingMessages(); i might be slightly better to ...
11 years, 3 months ago (2009-09-25 19:43:33 UTC) #4
jorlow
http://codereview.chromium.org/240001/diff/3001/4002 File chrome/test/render_view_test.cc (right): http://codereview.chromium.org/240001/diff/3001/4002#newcode114 Line 114: ProcessPendingMessages(); On 2009/09/25 19:43:33, darin wrote: > i ...
11 years, 3 months ago (2009-09-25 19:56:11 UTC) #5
darin (slow to review)
11 years, 3 months ago (2009-09-25 20:36:36 UTC) #6
On 2009/09/25 19:56:11, Jeremy Orlow wrote:
> http://codereview.chromium.org/240001/diff/3001/4002
> File chrome/test/render_view_test.cc (right):
> 
> http://codereview.chromium.org/240001/diff/3001/4002#newcode114
> Line 114: ProcessPendingMessages();
> On 2009/09/25 19:43:33, darin wrote:
> > i might be slightly better to call GC after this line.  that way any work
> > performed by those tasks have a chance to release object references that
might
> > be intertwined with GC'able objects.  i'm thinking about JS timers, etc.
> 
> Not possible.  GetMainThread() won't work at this point.

Ah, because of SendCloseMessage.  OK, LGTM

Powered by Google App Engine
This is Rietveld 408576698