Mercurial > hg > truffle
comparison src/share/vm/utilities/vmError.cpp @ 13086:096c224171c4
Merge with http://hg.openjdk.java.net/hsx/hsx25/hotspot/
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 20 Nov 2013 00:10:38 +0100 |
parents | cefad50507d8 5cc2d82aa82a |
children | d8041d695d19 |
comparison
equal
deleted
inserted
replaced
12782:92b7ec34ddfa | 13086:096c224171c4 |
---|---|
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())); |