changeset 4237:c8304f3d0a6c

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
author neliasso
date Wed, 13 Feb 2013 10:25:09 +0100
parents 5e48fb5e9625
children eb911d21c6b1 4eca232ca0c6
files src/share/vm/compiler/compileBroker.cpp src/share/vm/opto/compile.cpp
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/compiler/compileBroker.cpp	Tue Feb 19 16:03:07 2013 -0800
+++ b/src/share/vm/compiler/compileBroker.cpp	Wed Feb 13 10:25:09 2013 +0100
@@ -502,7 +502,7 @@
   ResourceMark rm(thread);
 
   // <task id='9' method='M' osr_bci='X' level='1' blocking='1' stamp='1.234'>
-  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'
--- a/src/share/vm/opto/compile.cpp	Tue Feb 19 16:03:07 2013 -0800
+++ b/src/share/vm/opto/compile.cpp	Wed Feb 13 10:25:09 2013 +0100
@@ -884,7 +884,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),