src/hotspot/share/ci/ciEnv.cpp
changeset 53911 65f2a401e0eb
parent 53582 881c5fbeb849
child 54015 cd701366fcf8
equal deleted inserted replaced
53910:072b382347db 53911:65f2a401e0eb
  1251 
  1251 
  1252 void ciEnv::dump_replay_data(int compile_id) {
  1252 void ciEnv::dump_replay_data(int compile_id) {
  1253   static char buffer[O_BUFLEN];
  1253   static char buffer[O_BUFLEN];
  1254   int ret = jio_snprintf(buffer, O_BUFLEN, "replay_pid%p_compid%d.log", os::current_process_id(), compile_id);
  1254   int ret = jio_snprintf(buffer, O_BUFLEN, "replay_pid%p_compid%d.log", os::current_process_id(), compile_id);
  1255   if (ret > 0) {
  1255   if (ret > 0) {
  1256     int fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0666);
  1256     int fd = os::open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0666);
  1257     if (fd != -1) {
  1257     if (fd != -1) {
  1258       FILE* replay_data_file = os::open(fd, "w");
  1258       FILE* replay_data_file = os::open(fd, "w");
  1259       if (replay_data_file != NULL) {
  1259       if (replay_data_file != NULL) {
  1260         fileStream replay_data_stream(replay_data_file, /*need_close=*/true);
  1260         fileStream replay_data_stream(replay_data_file, /*need_close=*/true);
  1261         dump_replay_data(&replay_data_stream);
  1261         dump_replay_data(&replay_data_stream);
  1269 
  1269 
  1270 void ciEnv::dump_inline_data(int compile_id) {
  1270 void ciEnv::dump_inline_data(int compile_id) {
  1271   static char buffer[O_BUFLEN];
  1271   static char buffer[O_BUFLEN];
  1272   int ret = jio_snprintf(buffer, O_BUFLEN, "inline_pid%p_compid%d.log", os::current_process_id(), compile_id);
  1272   int ret = jio_snprintf(buffer, O_BUFLEN, "inline_pid%p_compid%d.log", os::current_process_id(), compile_id);
  1273   if (ret > 0) {
  1273   if (ret > 0) {
  1274     int fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0666);
  1274     int fd = os::open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0666);
  1275     if (fd != -1) {
  1275     if (fd != -1) {
  1276       FILE* inline_data_file = os::open(fd, "w");
  1276       FILE* inline_data_file = os::open(fd, "w");
  1277       if (inline_data_file != NULL) {
  1277       if (inline_data_file != NULL) {
  1278         fileStream replay_data_stream(inline_data_file, /*need_close=*/true);
  1278         fileStream replay_data_stream(inline_data_file, /*need_close=*/true);
  1279         GUARDED_VM_ENTRY(
  1279         GUARDED_VM_ENTRY(