src/share/vm/compiler/compilerOracle.cpp

changeset 3899
3759236eea14
parent 3853
1e76463170b3
child 3907
90d5a592ea8f
     1.1 --- a/src/share/vm/compiler/compilerOracle.cpp	Fri Jun 29 17:12:15 2012 -0700
     1.2 +++ b/src/share/vm/compiler/compilerOracle.cpp	Mon Jul 02 10:54:17 2012 -0400
     1.3 @@ -550,10 +550,12 @@
     1.4    }
     1.5  }
     1.6  
     1.7 +static const char* default_cc_file = ".hotspot_compiler";
     1.8 +
     1.9  static const char* cc_file() {
    1.10  #ifdef ASSERT
    1.11    if (CompileCommandFile == NULL)
    1.12 -    return ".hotspot_compiler";
    1.13 +    return default_cc_file;
    1.14  #endif
    1.15    return CompileCommandFile;
    1.16  }
    1.17 @@ -636,10 +638,17 @@
    1.18    CompilerOracle::parse_from_string(CompileOnly, CompilerOracle::parse_compile_only);
    1.19    if (CompilerOracle::has_command_file()) {
    1.20      CompilerOracle::parse_from_file();
    1.21 +  } else {
    1.22 +    struct stat buf;
    1.23 +    if (os::stat(default_cc_file, &buf) == 0) {
    1.24 +      warning("%s file is present but has been ignored.  "
    1.25 +              "Run with -XX:CompileCommandFile=%s to load the file.",
    1.26 +              default_cc_file, default_cc_file);
    1.27 +    }
    1.28    }
    1.29    if (lists[PrintCommand] != NULL) {
    1.30      if (PrintAssembly) {
    1.31 -      warning("CompileCommand and/or .hotspot_compiler file contains 'print' commands, but PrintAssembly is also enabled");
    1.32 +      warning("CompileCommand and/or %s file contains 'print' commands, but PrintAssembly is also enabled", default_cc_file);
    1.33      } else if (FLAG_IS_DEFAULT(DebugNonSafepoints)) {
    1.34        warning("printing of assembly code is enabled; turning on DebugNonSafepoints to gain additional output");
    1.35        DebugNonSafepoints = true;

mercurial