hotspot/src/share/vm/ci/ciEnv.cpp
changeset 24424 2658d7834c6e
parent 24351 61b33cc6d3cf
child 25325 e3af4e02b0d5
equal deleted inserted replaced
24358:8528b67f6562 24424:2658d7834c6e
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
  1248     if (fd != -1) {
  1248     if (fd != -1) {
  1249       FILE* replay_data_file = os::open(fd, "w");
  1249       FILE* replay_data_file = os::open(fd, "w");
  1250       if (replay_data_file != NULL) {
  1250       if (replay_data_file != NULL) {
  1251         fileStream replay_data_stream(replay_data_file, /*need_close=*/true);
  1251         fileStream replay_data_stream(replay_data_file, /*need_close=*/true);
  1252         dump_replay_data(&replay_data_stream);
  1252         dump_replay_data(&replay_data_stream);
  1253         tty->print("# Compiler replay data is saved as: ");
  1253         tty->print_cr("# Compiler replay data is saved as: %s", buffer);
  1254         tty->print_cr(buffer);
       
  1255       } else {
  1254       } else {
  1256         tty->print_cr("# Can't open file to dump replay data.");
  1255         tty->print_cr("# Can't open file to dump replay data.");
  1257       }
  1256       }
  1258     }
  1257     }
  1259   }
  1258   }
  1272           MutexLocker ml(Compile_lock);
  1271           MutexLocker ml(Compile_lock);
  1273           dump_compile_data(&replay_data_stream);
  1272           dump_compile_data(&replay_data_stream);
  1274         )
  1273         )
  1275         replay_data_stream.flush();
  1274         replay_data_stream.flush();
  1276         tty->print("# Compiler inline data is saved as: ");
  1275         tty->print("# Compiler inline data is saved as: ");
  1277         tty->print_cr(buffer);
  1276         tty->print_cr("%s", buffer);
  1278       } else {
  1277       } else {
  1279         tty->print_cr("# Can't open file to dump inline data.");
  1278         tty->print_cr("# Can't open file to dump inline data.");
  1280       }
  1279       }
  1281     }
  1280     }
  1282   }
  1281   }