Skip to content

Commit

Permalink
Remove all traces of the --host_jvm_profile command line argument.
Browse files Browse the repository at this point in the history
RELNOTES[INC]: The --host_jvm_profile command line argument is not supported anymore.

PiperOrigin-RevId: 602952190
Change-Id: I360f875d0783a7f9b8b8cc1ad8e6bd496dab831c
  • Loading branch information
lberki authored and copybara-github committed Jan 31, 2024
1 parent a4c3d89 commit 3491250
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 19 deletions.
3 changes: 0 additions & 3 deletions src/main/cpp/blaze.cc
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,6 @@ static vector<string> GetServerExeArgs(const blaze_util::Path &jvm_path,
if (startup_options.host_jvm_debug) {
result.push_back("--host_jvm_debug");
}
if (!startup_options.host_jvm_profile.empty()) {
result.push_back("--host_jvm_profile=" + startup_options.host_jvm_profile);
}
if (!startup_options.host_jvm_args.empty()) {
for (const auto &arg : startup_options.host_jvm_args) {
result.push_back("--host_jvm_args=" + arg);
Expand Down
4 changes: 0 additions & 4 deletions src/main/cpp/startup_options.cc
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,6 @@ blaze_exit_code::ExitCode StartupOptions::ProcessArg(
nullptr) {
failure_detail_out = blaze_util::Path(blaze::AbsolutePathFromFlag(value));
option_sources["failure_detail_out"] = rcfile;
} else if ((value = GetUnaryOption(arg, next_arg, "--host_jvm_profile")) !=
nullptr) {
host_jvm_profile = value;
option_sources["host_jvm_profile"] = rcfile;
} else if ((value = GetUnaryOption(arg, next_arg, "--server_javabase")) !=
nullptr) {
// TODO(bazel-team): Consider examining the javabase and re-execing in case
Expand Down
2 changes: 0 additions & 2 deletions src/main/cpp/startup_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@ class StartupOptions {

bool autodetect_server_javabase;

std::string host_jvm_profile;

std::vector<std::string> host_jvm_args;

bool batch;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,6 @@ public class HostJvmStartupOptions extends OptionsBase {
help = "Flags to pass to the JVM executing Blaze.")
public List<String> hostJvmArgs;

@Option(
name = "host_jvm_profile",
defaultValue = "", // NOTE: purely decorative! See BlazeServerStartupOptions.
valueHelp = "<profiler_name>",
documentationCategory = OptionDocumentationCategory.UNCATEGORIZED,
effectTags = {OptionEffectTag.NO_OP},
help = "Deprecated no-op.")
public String hostJvmProfile;

@Option(
name = "host_jvm_debug",
defaultValue = "null", // NOTE: purely decorative! See BlazeServerStartupOptions.
Expand Down
1 change: 0 additions & 1 deletion src/test/cpp/bazel_startup_options_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ TEST_F(BazelStartupOptionsTest, ValidStartupFlags) {
ExpectIsUnaryOption(options, "connect_timeout_secs");
ExpectIsUnaryOption(options, "digest_function");
ExpectIsUnaryOption(options, "host_jvm_args");
ExpectIsUnaryOption(options, "host_jvm_profile");
ExpectIsUnaryOption(options, "install_base");
ExpectIsUnaryOption(options, "invocation_policy");
ExpectIsUnaryOption(options, "io_nice_level");
Expand Down

0 comments on commit 3491250

Please sign in to comment.