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

Issue 154273003: Make std* blocking file-descriptors. (Closed)

Created:
6 years, 10 months ago by Anders Johnsen
Modified:
6 years, 10 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Make std* blocking file-descriptors. This will most likely be a performance regression when piping, that we'll have to look into in the future (copying data through message-passing). BUG= R=sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=32715

Patch Set 1 #

Total comments: 14

Patch Set 2 : Cleanup #

Patch Set 3 : Cleanup #

Patch Set 4 : Other platforms #

Patch Set 5 : Fixes #

Patch Set 6 : Update with bug. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -193 lines) Patch
M runtime/bin/builtin_natives.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M runtime/bin/eventhandler_android.cc View 1 2 3 1 chunk +1 line, -9 lines 0 comments Download
M runtime/bin/eventhandler_linux.cc View 1 chunk +1 line, -9 lines 0 comments Download
M runtime/bin/eventhandler_macos.cc View 1 2 3 1 chunk +1 line, -9 lines 0 comments Download
M runtime/bin/eventhandler_win.cc View 1 2 3 1 chunk +1 line, -8 lines 0 comments Download
M runtime/bin/file_android.cc View 1 2 3 1 chunk +15 lines, -10 lines 0 comments Download
M runtime/bin/file_linux.cc View 1 1 chunk +14 lines, -9 lines 0 comments Download
M runtime/bin/file_macos.cc View 1 2 3 1 chunk +15 lines, -10 lines 0 comments Download
M runtime/bin/file_win.cc View 1 2 3 4 2 chunks +22 lines, -9 lines 0 comments Download
M runtime/bin/main.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/bin/platform.h View 1 chunk +0 lines, -6 lines 0 comments Download
M runtime/bin/platform_android.cc View 1 2 3 1 chunk +0 lines, -18 lines 0 comments Download
M runtime/bin/platform_linux.cc View 1 chunk +0 lines, -18 lines 0 comments Download
M runtime/bin/platform_macos.cc View 1 2 3 1 chunk +0 lines, -18 lines 0 comments Download
M runtime/bin/platform_win.cc View 1 2 3 1 chunk +0 lines, -14 lines 0 comments Download
M runtime/bin/process.cc View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/bin/socket_android.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M runtime/bin/socket_linux.cc View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/bin/socket_macos.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M runtime/bin/socket_patch.dart View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M runtime/bin/socket_win.cc View 1 2 3 4 1 chunk +2 lines, -14 lines 0 comments Download
M runtime/bin/stdio_android.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/bin/stdio_linux.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/bin/stdio_macos.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/bin/stdio_patch.dart View 1 2 3 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/lib/io_patch.dart View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/pub.status View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M sdk/lib/io/file_impl.dart View 1 chunk +13 lines, -10 lines 0 comments Download
M sdk/lib/io/stdio.dart View 1 2 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Anders Johnsen
*linux only* - let me know what you think.
6 years, 10 months ago (2014-02-07 10:16:35 UTC) #1
Søren Gjesse
This actually cleaned up stuff. https://codereview.chromium.org/154273003/diff/1/runtime/bin/file_linux.cc File runtime/bin/file_linux.cc (right): https://codereview.chromium.org/154273003/diff/1/runtime/bin/file_linux.cc#newcode48 runtime/bin/file_linux.cc:48: if (handle_->fd() == STDOUT_FILENO) ...
6 years, 10 months ago (2014-02-07 11:05:10 UTC) #2
Ivan Posva
-Ivan https://codereview.chromium.org/154273003/diff/1/runtime/bin/builtin_natives.cc File runtime/bin/builtin_natives.cc (right): https://codereview.chromium.org/154273003/diff/1/runtime/bin/builtin_natives.cc#newcode124 runtime/bin/builtin_natives.cc:124: fflush(stdout); If you are using fflush here it ...
6 years, 10 months ago (2014-02-11 04:08:36 UTC) #3
Anders Johnsen
Starting to port this. https://codereview.chromium.org/154273003/diff/1/runtime/bin/builtin_natives.cc File runtime/bin/builtin_natives.cc (right): https://codereview.chromium.org/154273003/diff/1/runtime/bin/builtin_natives.cc#newcode124 runtime/bin/builtin_natives.cc:124: fflush(stdout); On 2014/02/11 04:08:37, Ivan ...
6 years, 10 months ago (2014-02-14 08:43:28 UTC) #4
Anders Johnsen
PTAL, now working for all platforms.
6 years, 10 months ago (2014-02-14 11:01:27 UTC) #5
Søren Gjesse
LGTM!
6 years, 10 months ago (2014-02-14 12:16:04 UTC) #6
Anders Johnsen
6 years, 10 months ago (2014-02-17 10:06:58 UTC) #7
Message was sent while issue was closed.
Committed patchset #6 manually as r32715 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698