equal
deleted
inserted
replaced
1048 int fd = prepare_log_file(ReplayDataFile, "replay_pid%p.log", buffer, sizeof(buffer)); |
1048 int fd = prepare_log_file(ReplayDataFile, "replay_pid%p.log", buffer, sizeof(buffer)); |
1049 if (fd != -1) { |
1049 if (fd != -1) { |
1050 FILE* replay_data_file = os::open(fd, "w"); |
1050 FILE* replay_data_file = os::open(fd, "w"); |
1051 if (replay_data_file != NULL) { |
1051 if (replay_data_file != NULL) { |
1052 fileStream replay_data_stream(replay_data_file, /*need_close=*/true); |
1052 fileStream replay_data_stream(replay_data_file, /*need_close=*/true); |
1053 env->dump_replay_data(&replay_data_stream); |
1053 env->dump_replay_data_unsafe(&replay_data_stream); |
1054 out.print_raw("#\n# Compiler replay data is saved as:\n# "); |
1054 out.print_raw("#\n# Compiler replay data is saved as:\n# "); |
1055 out.print_raw_cr(buffer); |
1055 out.print_raw_cr(buffer); |
1056 } else { |
1056 } else { |
1057 out.print_raw("#\n# Can't open file to dump replay data. Error: "); |
1057 out.print_raw("#\n# Can't open file to dump replay data. Error: "); |
1058 out.print_raw_cr(strerror(os::get_last_error())); |
1058 out.print_raw_cr(strerror(os::get_last_error())); |