commit | f3d42db540ac64ba4df36b612788a5191dd0219c | [log] [tgz] |
---|---|---|
author | schmitt <schmitt@google.com> | Fri Sep 27 08:13:31 2019 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Sep 27 08:14:20 2019 -0700 |
tree | a186830ccfc99cb9a6b4c986766463cb767f3ac8 | |
parent | fdfa00cb28dd59d0e149e52daff2460181d54a6d [diff] |
Fix crash in CollectLocalCpuUsage. It is possible for time to travel "backwards" (currentTimeMillis() returning a value smaller than an earlier call to the same method). If time traveled backwards by at least 2000 milliseconds then this code would try to create an array with a negative length, causing an exception. This change doesn't fix the underlying problem (the class performs a lot of unsafe time math) but bounds the array creation to not use negative values. RELNOTES: None PiperOrigin-RevId: 271572798
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel rebuilds only what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md
Bazel is released in ‘Beta’. See the product roadmap to learn about the path toward a stable 1.0 release.