Skip to content

Commit

Permalink
8313632: ciEnv::dump_replay_data use fclose
Browse files Browse the repository at this point in the history
Reviewed-by: thartmann, lucy
  • Loading branch information
MBaesken committed Aug 3, 2023
1 parent ab1c212 commit 0f2fce7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hotspot/share/ci/ciEnv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1708,8 +1708,10 @@ void ciEnv::dump_replay_data(int compile_id) {
fileStream replay_data_stream(replay_data_file, /*need_close=*/true);
dump_replay_data(&replay_data_stream);
tty->print_cr("# Compiler replay data is saved as: %s", buffer);
fclose(replay_data_file);
} else {
tty->print_cr("# Can't open file to dump replay data.");
close(fd);
}
}
}
Expand All @@ -1732,8 +1734,10 @@ void ciEnv::dump_inline_data(int compile_id) {
replay_data_stream.flush();
tty->print("# Compiler inline data is saved as: ");
tty->print_cr("%s", buffer);
fclose(inline_data_file);
} else {
tty->print_cr("# Can't open file to dump inline data.");
close(fd);
}
}
}
Expand Down

1 comment on commit 0f2fce7

@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.