diff src/share/vm/runtime/deoptimization.cpp @ 8609:9f9aaa65294e

fixed -XX:+PrintDeoptimizationDetails in debug/fastdebug build
author Christian Haeubl <haeubl@ssw.jku.at>
date Tue, 26 Mar 2013 15:35:20 +0100
parents 6b6cbd8b8914
children b9a918201d47
line wrap: on
line diff
--- a/src/share/vm/runtime/deoptimization.cpp	Tue Mar 26 14:35:32 2013 +0100
+++ b/src/share/vm/runtime/deoptimization.cpp	Tue Mar 26 15:35:20 2013 +0100
@@ -212,10 +212,14 @@
   nmethod* nm = (nmethod*) deoptee.cb();
   GraalCompiler* compiler = (GraalCompiler*) nm->compiler();
   for (jlong* p = nm->leaf_graph_ids_begin(); p != nm->leaf_graph_ids_end(); p++) {
-    if (PrintDeoptimizationDetails) {
-      tty->print_cr("leaf graph id: %d", *p);
+    compiler->deopt_leaf_graph(*p);
+  }
+  if (PrintDeoptimizationDetails) {
+    tty->print("leaf graph ids: ");
+    for (jlong* p = nm->leaf_graph_ids_begin(); p != nm->leaf_graph_ids_end(); p++) {
+      tty->print("%d ", *p);
     }
-    compiler->deopt_leaf_graph(*p);
+    tty->cr();
   }
 #endif