Skip to content

Commit

Permalink
Fix command parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaiwei committed Oct 13, 2024
1 parent 2fb3ba8 commit eb8c57e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/compiler/compilerOracle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ static OracleCommand parse_command_name(const char * line, int* bytes_read) {

*bytes_read = 0;
char command[33];
int matches = sscanf(line, "%32[a-z]%n", command, bytes_read);
int matches = sscanf(line, "%32[a-zA-Z]%n", command, bytes_read);
if (matches > 0) {
for (uint i = 0; i < ARRAY_SIZE(command_names); i++) {
if (strcmp(command, command_names[MemStatCommand]) == 0) {
Expand Down

0 comments on commit eb8c57e

Please sign in to comment.