commit | f4d53fb3f72820017c4f67a70eb8d3981f53a73a | [log] [tgz] |
---|---|---|
author | Sam Maier <smaier@chromium.org> | Tue Jul 31 22:10:41 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jul 31 22:10:41 2018 |
tree | a55d8d7caed1d2fbb83f523232f20a1fee84d08b | |
parent | fd6fd0c8626d5a5aa02081138c112d06f0633a69 [diff] |
Android: moving SecureRandom initialize to thread pool Currently, the AsyncTask that creates the SecureRandom is on the SERIAL_EXECUTOR - this is causing a lot of ANRs. Since it doesn't appear to require any synchronus guarantees with anything else in the SERIAL_EXECUTOR, we can move this to the THREAD_POOL_EXECUTOR. This means when we block on SecureRandom creation using get(), we don't have to wait on all tasks currently in the SERIAL_EXECUTOR finishing. Bug: 866998 Change-Id: I771724a184bf501b2da55f7d42a93b3943e7a058 Reviewed-on: https://chromium-review.googlesource.com/1157211 Reviewed-by: Ted Choc <tedchoc@chromium.org> Commit-Queue: Sam Maier <smaier@chromium.org> Cr-Commit-Position: refs/heads/master@{#579591}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .