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

Issue 165723007: Move signal_blocker to platform and use it by default in TEMP_FAILURE_RETRY. (Closed)

Created:
6 years, 10 months ago by Anders Johnsen
Modified:
6 years, 9 months ago
Reviewers:
Søren Gjesse, Cutch
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Move signal_blocker to platform and use it by default in TEMP_FAILURE_RETRY. BUG=http://code.google.com/p/dart/issues/detail?id=16927 R=johnmccutchan@google.com, sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=33745

Patch Set 1 #

Total comments: 3

Patch Set 2 : Introduce NO_RETRY_EXPECTED and VOID_TEMP_FAILURE_RETRY. #

Patch Set 3 : Moar fix #

Patch Set 4 : Fix NO_RETRY_EXPECTED. #

Total comments: 2

Patch Set 5 : Make it cross platform #

Patch Set 6 : Tiny fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+707 lines, -846 lines) Patch
M runtime/bin/builtin_impl_sources.gypi View 1 1 chunk +0 lines, -1 line 0 comments Download
M runtime/bin/crypto_android.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/bin/crypto_linux.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M runtime/bin/crypto_macos.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/bin/dbg_connection_android.cc View 1 2 3 4 4 chunks +6 lines, -4 lines 0 comments Download
M runtime/bin/dbg_connection_linux.cc View 1 2 4 chunks +7 lines, -6 lines 0 comments Download
M runtime/bin/dbg_connection_macos.cc View 1 2 3 4 3 chunks +5 lines, -4 lines 0 comments Download
M runtime/bin/directory_android.cc View 1 2 3 4 12 chunks +18 lines, -16 lines 0 comments Download
M runtime/bin/directory_linux.cc View 1 14 chunks +24 lines, -24 lines 0 comments Download
M runtime/bin/directory_macos.cc View 1 2 3 4 12 chunks +18 lines, -16 lines 0 comments Download
M runtime/bin/eventhandler_android.h View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M runtime/bin/eventhandler_android.cc View 1 2 3 4 6 chunks +13 lines, -13 lines 0 comments Download
M runtime/bin/eventhandler_linux.h View 1 2 chunks +4 lines, -2 lines 0 comments Download
M runtime/bin/eventhandler_linux.cc View 1 8 chunks +24 lines, -23 lines 0 comments Download
M runtime/bin/eventhandler_macos.h View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M runtime/bin/eventhandler_macos.cc View 1 2 3 4 5 chunks +6 lines, -6 lines 0 comments Download
M runtime/bin/fdutils_android.cc View 1 2 3 4 4 chunks +8 lines, -6 lines 0 comments Download
M runtime/bin/fdutils_linux.cc View 1 5 chunks +7 lines, -6 lines 0 comments Download
M runtime/bin/fdutils_macos.cc View 1 2 3 4 4 chunks +8 lines, -6 lines 0 comments Download
M runtime/bin/file_android.cc View 1 2 3 4 20 chunks +36 lines, -44 lines 0 comments Download
M runtime/bin/file_linux.cc View 1 2 3 4 20 chunks +41 lines, -48 lines 0 comments Download
M runtime/bin/file_macos.cc View 1 2 3 4 18 chunks +24 lines, -29 lines 0 comments Download
M runtime/bin/file_system_watcher_android.cc View 1 2 3 4 4 chunks +5 lines, -3 lines 0 comments Download
M runtime/bin/file_system_watcher_linux.cc View 1 2 4 chunks +5 lines, -3 lines 0 comments Download
M runtime/bin/file_system_watcher_macos.cc View 1 2 3 4 3 chunks +4 lines, -2 lines 0 comments Download
M runtime/bin/process_android.cc View 1 2 3 4 16 chunks +65 lines, -65 lines 0 comments Download
M runtime/bin/process_linux.cc View 1 2 3 4 5 17 chunks +72 lines, -75 lines 0 comments Download
M runtime/bin/process_macos.cc View 1 2 3 4 6 chunks +12 lines, -11 lines 0 comments Download
D runtime/bin/signal_blocker.h View 1 chunk +0 lines, -71 lines 0 comments Download
M runtime/bin/socket_android.cc View 1 2 3 4 24 chunks +79 lines, -95 lines 0 comments Download
M runtime/bin/socket_linux.cc View 1 2 3 4 30 chunks +73 lines, -116 lines 0 comments Download
M runtime/bin/socket_macos.cc View 1 2 3 4 25 chunks +83 lines, -102 lines 0 comments Download
M runtime/bin/socket_patch.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/stdio_android.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/bin/stdio_linux.cc View 1 2 chunks +10 lines, -10 lines 0 comments Download
M runtime/bin/stdio_macos.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/platform/globals.h View 1 1 chunk +6 lines, -18 lines 0 comments Download
M runtime/platform/platform_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A + runtime/platform/signal_blocker.h View 1 2 3 4 4 chunks +21 lines, -8 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Anders Johnsen
This is only Linux for now - let me know what you think. I took ...
6 years, 10 months ago (2014-02-20 14:42:18 UTC) #1
Søren Gjesse
https://codereview.chromium.org/165723007/diff/1/runtime/bin/dbg_connection_linux.cc File runtime/bin/dbg_connection_linux.cc (right): https://codereview.chromium.org/165723007/diff/1/runtime/bin/dbg_connection_linux.cc#newcode73 runtime/bin/dbg_connection_linux.cc:73: int result = pipe(wakeup_fds_); Should we add a NO_RETRY_EXPECTED ...
6 years, 10 months ago (2014-02-20 15:09:09 UTC) #2
Anders Johnsen
https://codereview.chromium.org/165723007/diff/1/runtime/bin/dbg_connection_linux.cc File runtime/bin/dbg_connection_linux.cc (right): https://codereview.chromium.org/165723007/diff/1/runtime/bin/dbg_connection_linux.cc#newcode73 runtime/bin/dbg_connection_linux.cc:73: int result = pipe(wakeup_fds_); On 2014/02/20 15:09:09, Søren Gjesse ...
6 years, 10 months ago (2014-02-20 15:10:16 UTC) #3
Cutch
https://codereview.chromium.org/165723007/diff/1/runtime/bin/dbg_connection_linux.cc File runtime/bin/dbg_connection_linux.cc (right): https://codereview.chromium.org/165723007/diff/1/runtime/bin/dbg_connection_linux.cc#newcode73 runtime/bin/dbg_connection_linux.cc:73: int result = pipe(wakeup_fds_); On 2014/02/20 15:09:09, Søren Gjesse ...
6 years, 10 months ago (2014-02-20 15:20:01 UTC) #4
Cutch
On 2014/02/20 15:20:01, Cutch wrote: > https://codereview.chromium.org/165723007/diff/1/runtime/bin/dbg_connection_linux.cc > File runtime/bin/dbg_connection_linux.cc (right): > > https://codereview.chromium.org/165723007/diff/1/runtime/bin/dbg_connection_linux.cc#newcode73 > ...
6 years, 9 months ago (2014-03-11 19:42:10 UTC) #5
Anders Johnsen
PTAL
6 years, 9 months ago (2014-03-14 09:07:43 UTC) #6
Cutch
lgtm w/ comment https://codereview.chromium.org/165723007/diff/110001/runtime/platform/signal_blocker.h File runtime/platform/signal_blocker.h (right): https://codereview.chromium.org/165723007/diff/110001/runtime/platform/signal_blocker.h#newcode72 runtime/platform/signal_blocker.h:72: // This macro can be used ...
6 years, 9 months ago (2014-03-14 14:40:38 UTC) #7
Anders Johnsen
PTAL, compiled and tested on Linux and Mac OS. https://codereview.chromium.org/165723007/diff/110001/runtime/platform/signal_blocker.h File runtime/platform/signal_blocker.h (right): https://codereview.chromium.org/165723007/diff/110001/runtime/platform/signal_blocker.h#newcode72 runtime/platform/signal_blocker.h:72: ...
6 years, 9 months ago (2014-03-17 13:35:33 UTC) #8
Søren Gjesse
LGTM - there was quite a lot of NO_RETRY_EXPECTED.
6 years, 9 months ago (2014-03-17 13:41:44 UTC) #9
Anders Johnsen
6 years, 9 months ago (2014-03-17 13:51:45 UTC) #10
Message was sent while issue was closed.
Committed patchset #6 manually as r33745 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698