diff options
author | janakr <janakr@google.com> | 2017-08-15 21:09:50 +0200 |
---|---|---|
committer | Irina Iancu <elenairina@google.com> | 2017-08-16 11:05:55 +0200 |
commit | ff746b4aaa5bb7109ff543a72c165fa6e785916f (patch) | |
tree | 3d4d848b744542e099bc398bf4b82b42fffa8a0d /src/main/java/com/google/devtools/build/lib/runtime/CommonCommandOptions.java | |
parent | 7481de4637998750a0f0eda2e39d09a5a9f84be9 (diff) |
Add the command option --experimental_oom_more_eagerly_threshold. This will replace the startup option after a deprecation period.
PiperOrigin-RevId: 165340514
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime/CommonCommandOptions.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/CommonCommandOptions.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/CommonCommandOptions.java b/src/main/java/com/google/devtools/build/lib/runtime/CommonCommandOptions.java index d5131c29d7..0800367703 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/CommonCommandOptions.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/CommonCommandOptions.java @@ -287,6 +287,17 @@ public class CommonCommandOptions extends OptionsBase { public boolean gcWatchdog; @Option( + name = "experimental_oom_more_eagerly_threshold", + defaultValue = "100", + documentationCategory = OptionDocumentationCategory.EXECUTION_STRATEGY, + effectTags = {OptionEffectTag.HOST_MACHINE_RESOURCE_OPTIMIZATIONS}, + help = + "If this flag is set to a value less than 100, Blaze will OOM if, after two full GC's, more" + + "than this percentage of the (old gen) heap is still occupied." + ) + public int oomMoreEagerlyThreshold; + + @Option( name = "startup_time", defaultValue = "0", documentationCategory = OptionDocumentationCategory.UNDOCUMENTED, |