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

Issue 502893002: Fix some leaks and failures under valgrind in JS extensions unit tests. (Closed)

Created:
6 years, 4 months ago by Sam McNally
Modified:
6 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix some leaks and failures under valgrind in JS extensions unit tests. This change: - Adds running the GC until the v8 heap size reaches steady state during ModuleSystemTest::TearDown. This is necessary to ensure that gin::Wrappable objects are freed, as finalizers for JS objects aren't run during isolate shut down. - Removes a racy check that failed under valgrind. BUG=389016, 406487 Committed: https://crrev.com/32a6fc7d37cf7c6e921779664bc02bbc353add57 Cr-Commit-Position: refs/heads/master@{#294779}

Patch Set 1 #

Total comments: 4

Patch Set 2 : more gc #

Total comments: 3

Patch Set 3 : SetUp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -7 lines) Patch
M extensions/renderer/api/serial/serial_api_unittest.cc View 1 1 chunk +0 lines, -6 lines 0 comments Download
M extensions/renderer/module_system_test.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/renderer/module_system_test.cc View 1 2 1 chunk +16 lines, -1 line 0 comments Download

Messages

Total messages: 17 (1 generated)
Sam McNally
6 years, 4 months ago (2014-08-25 09:26:39 UTC) #1
benwells
I'm wondering if kalman would be a better reviewer for this. Hasn't he been reviewing ...
6 years, 3 months ago (2014-08-26 03:51:22 UTC) #2
Sam McNally
sammc@chromium.org changed reviewers: + kalman@chromium.org - benwells@chromium.org
6 years, 3 months ago (2014-08-26 04:16:08 UTC) #3
Sam McNally
+kalman -benwells
6 years, 3 months ago (2014-08-26 04:16:08 UTC) #4
not at google - send to devlin
https://codereview.chromium.org/502893002/diff/1/extensions/renderer/module_system_test.cc File extensions/renderer/module_system_test.cc (right): https://codereview.chromium.org/502893002/diff/1/extensions/renderer/module_system_test.cc#newcode224 extensions/renderer/module_system_test.cc:224: env_.reset(); env_ is created in the constructor, why do ...
6 years, 3 months ago (2014-08-27 19:28:58 UTC) #5
Sam McNally
https://codereview.chromium.org/502893002/diff/1/extensions/renderer/module_system_test.cc File extensions/renderer/module_system_test.cc (right): https://codereview.chromium.org/502893002/diff/1/extensions/renderer/module_system_test.cc#newcode224 extensions/renderer/module_system_test.cc:224: env_.reset(); On 2014/08/27 19:28:58, kalman wrote: > env_ is ...
6 years, 3 months ago (2014-08-28 07:06:51 UTC) #6
not at google - send to devlin
lgtm, is the CL description still accurate? https://codereview.chromium.org/502893002/diff/20001/extensions/renderer/module_system_test.cc File extensions/renderer/module_system_test.cc (right): https://codereview.chromium.org/502893002/diff/20001/extensions/renderer/module_system_test.cc#newcode212 extensions/renderer/module_system_test.cc:212: env_(CreateEnvironment()), As ...
6 years, 3 months ago (2014-08-28 15:42:04 UTC) #7
Sam McNally
https://codereview.chromium.org/502893002/diff/20001/extensions/renderer/module_system_test.cc File extensions/renderer/module_system_test.cc (right): https://codereview.chromium.org/502893002/diff/20001/extensions/renderer/module_system_test.cc#newcode212 extensions/renderer/module_system_test.cc:212: env_(CreateEnvironment()), On 2014/08/28 15:42:04, kalman wrote: > As a ...
6 years, 3 months ago (2014-08-29 01:13:21 UTC) #8
Sam McNally
The CQ bit was checked by sammc@chromium.org
6 years, 3 months ago (2014-08-29 01:14:16 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sammc@chromium.org/502893002/40001
6 years, 3 months ago (2014-08-29 01:15:05 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel_swarming on tryserver.chromium.win ...
6 years, 3 months ago (2014-08-29 02:13:33 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-29 02:22:35 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_swarming/builds/4323)
6 years, 3 months ago (2014-08-29 02:22:35 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/502893002/40001
6 years, 3 months ago (2014-09-15 02:47:17 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 1b8eec14ebd25ed263d0bb71889a2ce10d07527a
6 years, 3 months ago (2014-09-15 02:49:39 UTC) #16
commit-bot: I haz the power
6 years, 3 months ago (2014-09-15 02:52:36 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/32a6fc7d37cf7c6e921779664bc02bbc353add57
Cr-Commit-Position: refs/heads/master@{#294779}

Powered by Google App Engine
This is Rietveld 408576698