Skip to content

Commit

Permalink
[JFR] Test jfr/event/gc/detailed/TestPromotionFailedEventWithParallel…
Browse files Browse the repository at this point in the history
…Scavenge.java crash

Summary: The format of snprintf expect a string, but pass an integer value in function create_emergency_chunk_path which defined in file jfrEmergencyDump.cpp.
Testing: jfr/event/gc/detailed/TestPromotionFailedEventWithParallelScavenge.java
Reviewers: sendaoYan, D-D-H
Issue: #690
  • Loading branch information
lingjun-cg committed Oct 31, 2024
1 parent 6b6e524 commit d927e56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ static const char* create_emergency_chunk_path(const char* repository_path) {
return NULL;
}
// append the individual substrings
jio_snprintf(chunk_path, chunkname_max_len, "%s%s%s%s", repository_path_len, os::file_separator(), date_time_buffer, chunk_file_jfr_ext);
jio_snprintf(chunk_path, chunkname_max_len, "%s%s%s%s", repository_path, os::file_separator(), date_time_buffer, chunk_file_jfr_ext);
return chunk_path;
}

Expand Down

0 comments on commit d927e56

Please sign in to comment.