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

Issue 1950613005: Fixes tests that use internals.observeGC to work with Ignition. (Closed)

Created:
4 years, 7 months ago by mythria
Modified:
4 years, 7 months ago
Reviewers:
rmcilroy
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

Fixes tests that use internals.observeGC to work with Ignition. In Ignition references to objects may remain live on the function's stack frame. This may prevent GC from collective otherwise dead objects. The objects passed to internals.ObserveGC function may remain live on the function's stack preventing GC from collecting them. To avoid this, parameters are not passed directly to this function. Instead, an inner function is used to access these objects. This will avoid having references to object on this function's stack. BUG=chromium:595672, v8:4280 Committed: https://crrev.com/00f22678f26f4548e5b748ab4ae57a996ec41323 Cr-Commit-Position: refs/heads/master@{#394130}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added a wrapper for observeGC. #

Patch Set 3 : fixed line couloum width. #

Total comments: 2

Patch Set 4 : Fixes comments and fixes more tests. #

Total comments: 4

Patch Set 5 : Address comments. And updates other internals.observeGC to observeGC. #

Patch Set 6 : Rebased the patch #

Patch Set 7 : updates test expectations. #

Patch Set 8 : Removed special wrapper for internals.observeGC. Adds an inner function to pass the object. #

Messages

Total messages: 42 (21 generated)
mythria
Ross, if these fixes look ok, I will also fix other failing tests along the ...
4 years, 7 months ago (2016-05-05 09:28:33 UTC) #2
rmcilroy
https://codereview.chromium.org/1950613005/diff/1/third_party/WebKit/LayoutTests/editing/input/text-input-controller-leak-document.html File third_party/WebKit/LayoutTests/editing/input/text-input-controller-leak-document.html (right): https://codereview.chromium.org/1950613005/diff/1/third_party/WebKit/LayoutTests/editing/input/text-input-controller-leak-document.html#newcode17 third_party/WebKit/LayoutTests/editing/input/text-input-controller-leak-document.html:17: firstRectForCharacterRangeGC = internals.observeGC(textInputController.firstRectForCharacterRange(0, 0)); What actually lives in a ...
4 years, 7 months ago (2016-05-05 13:50:46 UTC) #3
mythria
PTAL. If this looks reasonable, I will update other tests as well. I am planning ...
4 years, 7 months ago (2016-05-12 08:44:44 UTC) #4
rmcilroy
Approach looks good, couple of comments. https://codereview.chromium.org/1950613005/diff/40001/third_party/WebKit/LayoutTests/editing/input/text-input-controller-leak-document.html File third_party/WebKit/LayoutTests/editing/input/text-input-controller-leak-document.html (right): https://codereview.chromium.org/1950613005/diff/40001/third_party/WebKit/LayoutTests/editing/input/text-input-controller-leak-document.html#newcode12 third_party/WebKit/LayoutTests/editing/input/text-input-controller-leak-document.html:12: return textInputController.markedRange();}); nit ...
4 years, 7 months ago (2016-05-12 09:31:18 UTC) #5
rmcilroy
https://codereview.chromium.org/1950613005/diff/60001/third_party/WebKit/LayoutTests/resources/observeGC.js File third_party/WebKit/LayoutTests/resources/observeGC.js (right): https://codereview.chromium.org/1950613005/diff/60001/third_party/WebKit/LayoutTests/resources/observeGC.js#newcode1 third_party/WebKit/LayoutTests/resources/observeGC.js:1: // Returns a GCObservation object for the object returned ...
4 years, 7 months ago (2016-05-13 11:21:09 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1950613005/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1950613005/80001
4 years, 7 months ago (2016-05-13 16:03:05 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/5147) ios-device-gn on ...
4 years, 7 months ago (2016-05-13 16:05:12 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1950613005/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1950613005/100001
4 years, 7 months ago (2016-05-16 09:19:04 UTC) #16
mythria
Thanks for your review. I fixed them. I also changed internals.observeGC calls to observeGC calls ...
4 years, 7 months ago (2016-05-16 09:27:57 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/222190)
4 years, 7 months ago (2016-05-16 10:24:15 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1950613005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1950613005/120001
4 years, 7 months ago (2016-05-16 11:14:06 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-16 12:54:18 UTC) #23
mythria
PTAL. I updated test expectations of two benchmarks: storage/indexeddb/request-leak-expected.txt and fast/harness/internals-observe-gc-expected.txt.
4 years, 7 months ago (2016-05-16 13:17:03 UTC) #24
rmcilroy
As discussed offline, let's not add the observeGC wrapper and instead just wrap calls in ...
4 years, 7 months ago (2016-05-16 14:31:27 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1950613005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1950613005/140001
4 years, 7 months ago (2016-05-17 08:42:16 UTC) #27
mythria
PTAL.
4 years, 7 months ago (2016-05-17 08:54:09 UTC) #32
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-17 10:39:54 UTC) #35
rmcilroy
LGTM, thanks.
4 years, 7 months ago (2016-05-17 13:07:32 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1950613005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1950613005/140001
4 years, 7 months ago (2016-05-17 15:28:39 UTC) #38
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 7 months ago (2016-05-17 15:35:52 UTC) #40
commit-bot: I haz the power
4 years, 7 months ago (2016-05-17 15:37:49 UTC) #42
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/00f22678f26f4548e5b748ab4ae57a996ec41323
Cr-Commit-Position: refs/heads/master@{#394130}

Powered by Google App Engine
This is Rietveld 408576698