# HG changeset patch # User neliasso # Date 1360747509 -3600 # Node ID f688e7528dc675b0cc4ba36bbf2e8f8125ec9e3b # Parent 73ed3a806ec6f82d8c8665c134080be29fae297a 8005772: Stubs report compile id -1 in phase events Summary: Use 0 to indicate id is NA, -1 for error or uninitalized Reviewed-by: kvn, twisti diff -r 73ed3a806ec6 -r f688e7528dc6 hotspot/src/share/vm/compiler/compileBroker.cpp --- a/hotspot/src/share/vm/compiler/compileBroker.cpp Wed Mar 13 13:44:45 2013 +0100 +++ b/hotspot/src/share/vm/compiler/compileBroker.cpp Wed Feb 13 10:25:09 2013 +0100 @@ -505,7 +505,7 @@ ResourceMark rm(thread); // - if (_compile_id != 0) log->print(" compile_id='%d'", _compile_id); + log->print(" compile_id='%d'", _compile_id); if (_osr_bci != CompileBroker::standard_entry_bci) { log->print(" compile_kind='osr'"); // same as nmethod::compile_kind } // else compile_kind='c2c' diff -r 73ed3a806ec6 -r f688e7528dc6 hotspot/src/share/vm/opto/compile.cpp --- a/hotspot/src/share/vm/opto/compile.cpp Wed Mar 13 13:44:45 2013 +0100 +++ b/hotspot/src/share/vm/opto/compile.cpp Wed Feb 13 10:25:09 2013 +0100 @@ -892,7 +892,7 @@ : Phase(Compiler), _env(ci_env), _log(ci_env->log()), - _compile_id(-1), + _compile_id(0), _save_argument_registers(save_arg_registers), _method(NULL), _stub_name(stub_name),