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

Issue 2568563002: Change ExecLinkWrapper to not buffer all tool output (Closed)

Created:
4 years ago by brucedawson
Modified:
4 years ago
Reviewers:
scottmg
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change ExecLinkWrapper to not buffer all tool output /verbose linking of chrome.dll creates over one GB of output. This causes ExecLinkWrapper to consume over two GB of memory which leads to an OOM failure in the 32-bit depot_tools python, and the loss of all of the valuable output. This change modifies ExecLinkWrapper to process the output one line at a time, thus avoiding the OOM. I've tested that this handles the 1.1 GB of output which the previous version of this function failed on and I've visually confirmed that the output looks the same - no extraneous blank lines, for instance, when displaying warnings, errors, or 1.9 million lines of verbose output. I also verified that the script stays idle when waiting for output - blocking on .readline(). This fixes the previous attempt which omitted the vital link.wait() call which meant that error codes were not propagated. R=scottmg@chromium.org BUG=672182, 672841 Committed: https://crrev.com/81dfeb7be03b9b3b7311ede93908fd8159761446 Cr-Commit-Position: refs/heads/master@{#437696}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -4 lines) Patch
M build/toolchain/win/tool_wrapper.py View 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (11 generated)
brucedawson
Now it's perfect...
4 years ago (2016-12-09 20:47:59 UTC) #2
scottmg
lgtm
4 years ago (2016-12-09 20:48:32 UTC) #5
scottmg
OH NO My autocomplete been corrupted with a chromium.com though.
4 years ago (2016-12-09 20:48:59 UTC) #6
brucedawson
On 2016/12/09 20:48:59, scottmg wrote: > OH NO > > My autocomplete been corrupted with ...
4 years ago (2016-12-09 20:51:10 UTC) #9
scottmg
On 2016/12/09 20:51:10, brucedawson wrote: > On 2016/12/09 20:48:59, scottmg wrote: > > OH NO ...
4 years ago (2016-12-09 20:54:33 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2568563002/1
4 years ago (2016-12-09 22:47:37 UTC) #14
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-09 23:39:44 UTC) #17
commit-bot: I haz the power
4 years ago (2016-12-12 14:58:31 UTC) #19
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/81dfeb7be03b9b3b7311ede93908fd8159761446
Cr-Commit-Position: refs/heads/master@{#437696}

Powered by Google App Engine
This is Rietveld 408576698