commit | 1ab4003f3712f800f60c3a9a7b6b436b71a256ac | [log] [tgz] |
---|---|---|
author | janakr <janakr@google.com> | Thu Jul 15 07:44:30 2021 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Jul 15 07:46:00 2021 -0700 |
tree | 1fe8c2aa71da9d0b701a38b6c5e33f049a6a56f5 | |
parent | 5a61ca1bd81bfd64d2f0292d5c0beb911403d215 [diff] |
Roll-forward of https://github.com/bazelbuild/bazel/commit/a95c7b7a9cb0088787d10a49d491b81f80cb6313 with fix: only reset the heapLimiterTriggeredGc bit if we are in a manually triggered GC. This prevents a concurrent non-manually triggered GC from resetting the bit. *** Original change description *** Modify RetainedHeapLimiter to only throw an OOM when it itself triggers a manual GC. Other parts of Blaze can trigger manual GCs, and high memory usage after a manual GC does not mean that Blaze has to OOM. Also don't trigger a manual GC if the previous GC was manual: this would lead to a double GC for any external manually triggered GCs. *** PiperOrigin-RevId: 384924455
{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