Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Commit 34650f5

Browse files
jyukutyoYaSuenag
authored andcommittedDec 10, 2020
8257872: UL: -Xlog does not check number of options
Reviewed-by: dholmes, iklam, ysuenaga
1 parent 6847bbb commit 34650f5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/hotspot/share/logging/logConfiguration.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,15 @@ bool LogConfiguration::parse_command_line_arguments(const char* opts) {
362362
*next = '\0';
363363
str = next + 1;
364364
} else {
365+
str = NULL;
365366
break;
366367
}
367368
}
368369

370+
if (str != NULL) {
371+
log_warning(logging)("Ignoring excess -Xlog options: \"%s\"", str);
372+
}
373+
369374
// Parse and apply the separated configuration options
370375
char* what = substrings[0];
371376
char* output = substrings[1];

0 commit comments

Comments
 (0)