Skip to content

Commit

Permalink
fix build fail issue on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
linzang committed Feb 19, 2021
1 parent 1af0e1e commit 0301a74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/services/attachListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ jint dump_heap_ext(AttachOperation* op, outputStream* out) {
// Then parse arguments from op->arg(2).
// Format: "compress_level,parallel".
if (arg_str != NULL && arg_str[0] != '\0') {
int args_len = strlen(arg_str);
size_t args_len = strlen(arg_str);
char* args_line = NEW_C_HEAP_ARRAY(char, args_len + 1, mtInternal);
snprintf(args_line, args_len + 1, "%s", arg_str);
int args_count = parse_args(args_line, extra_args, MAX_EXTRA_ARGS_COUNT, ',');
Expand Down

0 comments on commit 0301a74

Please sign in to comment.