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

Issue 209333014: Speed up GetRandomBytes by only entering signal-blocking scope once. (Closed)

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

Description

Speed up GetRandomBytes by only entering signal-blocking scope once. BUG= R=sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=34356

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add validation and apply in other scenario. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -31 lines) Patch
M runtime/bin/crypto_android.cc View 1 chunk +17 lines, -4 lines 0 comments Download
M runtime/bin/crypto_linux.cc View 1 chunk +17 lines, -4 lines 0 comments Download
M runtime/bin/crypto_macos.cc View 2 chunks +17 lines, -5 lines 0 comments Download
M runtime/bin/eventhandler_android.cc View 1 3 chunks +4 lines, -5 lines 0 comments Download
M runtime/bin/eventhandler_linux.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download
M runtime/bin/eventhandler_macos.cc View 1 3 chunks +4 lines, -7 lines 0 comments Download
M runtime/platform/signal_blocker.h View 1 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Anders Johnsen
6 years, 9 months ago (2014-03-25 07:59:03 UTC) #1
Søren Gjesse
LGTM, with comments https://codereview.chromium.org/209333014/diff/1/runtime/bin/crypto_macos.cc File runtime/bin/crypto_macos.cc (right): https://codereview.chromium.org/209333014/diff/1/runtime/bin/crypto_macos.cc#newcode20 runtime/bin/crypto_macos.cc:20: ThreadSignalBlocker signal_blocker(SIGPROF); Maybe there are other ...
6 years, 9 months ago (2014-03-25 08:21:23 UTC) #2
Anders Johnsen
https://codereview.chromium.org/209333014/diff/1/runtime/bin/crypto_macos.cc File runtime/bin/crypto_macos.cc (right): https://codereview.chromium.org/209333014/diff/1/runtime/bin/crypto_macos.cc#newcode20 runtime/bin/crypto_macos.cc:20: ThreadSignalBlocker signal_blocker(SIGPROF); On 2014/03/25 08:21:23, Søren Gjesse wrote: > ...
6 years, 9 months ago (2014-03-25 13:06:03 UTC) #3
Anders Johnsen
6 years, 9 months ago (2014-03-25 13:07:01 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 manually as r34356 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698