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

Issue 100393010: Use a pool to restrict access to file descriptors in pub. (Closed)

Created:
7 years ago by nweiz
Modified:
7 years ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Use a pool to restrict access to file descriptors in pub. This is like r30830, but it doesn't check out resources for process invocations in an attempt to narrow down the cause of the Windows buildbot failure. This also adds additional logging for the same purpose. R=rnystrom@google.com TBR Committed: https://code.google.com/p/dart/source/detail?r=30839

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -73 lines) Patch
M pkg/barback/lib/src/pool.dart View 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/io.dart View 7 chunks +82 lines, -73 lines 4 comments Download
A + sdk/lib/_internal/pub/lib/src/pool.dart View 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/utils.dart View 1 chunk +58 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
nweiz
7 years ago (2013-12-04 00:48:37 UTC) #1
nweiz
Committed patchset #1 manually as r30839 (presubmit successful).
7 years ago (2013-12-04 00:49:59 UTC) #2
Bob Nystrom
A few suggestions then LGTM. https://codereview.chromium.org/100393010/diff/1/sdk/lib/_internal/pub/lib/src/io.dart File sdk/lib/_internal/pub/lib/src/io.dart (right): https://codereview.chromium.org/100393010/diff/1/sdk/lib/_internal/pub/lib/src/io.dart#newcode709 sdk/lib/_internal/pub/lib/src/io.dart:709: "$exitCode."); Make this one ...
7 years ago (2013-12-04 00:58:17 UTC) #3
nweiz
7 years ago (2013-12-04 01:21:00 UTC) #4
Message was sent while issue was closed.
Rolling code review changes into the next CL.

https://codereview.chromium.org/100393010/diff/1/sdk/lib/_internal/pub/lib/sr...
File sdk/lib/_internal/pub/lib/src/io.dart (right):

https://codereview.chromium.org/100393010/diff/1/sdk/lib/_internal/pub/lib/sr...
sdk/lib/_internal/pub/lib/src/io.dart:709: "$exitCode.");
On 2013/12/04 00:58:18, Bob Nystrom wrote:
> Make this one line again.

Done.

https://codereview.chromium.org/100393010/diff/1/sdk/lib/_internal/pub/lib/sr...
sdk/lib/_internal/pub/lib/src/io.dart:733: readBinaryFile(dataFile);
On 2013/12/04 00:58:18, Bob Nystrom wrote:
> Instead of reading the whole file, how about just opening and closing it?

I want the logs to indicate how big it was as well.

> Also, add a TODO to remove this.

Done.

Powered by Google App Engine
This is Rietveld 408576698