diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java index 6d434f8d56..d5588f525e 100644 --- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java +++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeServerStartupOptions.java @@ -430,4 +430,15 @@ public class BlazeServerStartupOptions extends OptionsBase { "Changed the expansion of --config flags to be done in-place, as opposed to in a fixed " + "point expansion between normal rc options and command-line specified options.") public boolean expandConfigsInPlace; + + @Option( + name = "idle_server_tasks", + defaultValue = "true", // NOTE: only for documentation, value is set and used by the client. + documentationCategory = OptionDocumentationCategory.BAZEL_CLIENT_OPTIONS, + effectTags = { + OptionEffectTag.LOSES_INCREMENTAL_STATE, + OptionEffectTag.HOST_MACHINE_RESOURCE_OPTIMIZATIONS, + }, + help = "Run System.gc() when the server is idle") + public boolean idleServerTasks; } |