Skip to content

Commit

Permalink
8257872: UL: -Xlog does not check number of options
Browse files Browse the repository at this point in the history
Reviewed-by: dholmes, iklam, ysuenaga
  • Loading branch information
jyukutyo authored and YaSuenag committed Dec 10, 2020
1 parent 6847bbb commit 34650f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/hotspot/share/logging/logConfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,15 @@ bool LogConfiguration::parse_command_line_arguments(const char* opts) {
*next = '\0';
str = next + 1;
} else {
str = NULL;
break;
}
}

if (str != NULL) {
log_warning(logging)("Ignoring excess -Xlog options: \"%s\"", str);
}

// Parse and apply the separated configuration options
char* what = substrings[0];
char* output = substrings[1];
Expand Down

1 comment on commit 34650f5

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.