changeset 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 056966f39a36
children 5407d1dd6450
files src/share/vm/runtime/deoptimization.cpp src/share/vm/runtime/vframeArray.cpp
diffstat 2 files changed, 7 insertions(+), 6 deletions(-) [+]
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
 
--- a/src/share/vm/runtime/vframeArray.cpp	Tue Mar 26 14:35:32 2013 +0100
+++ b/src/share/vm/runtime/vframeArray.cpp	Tue Mar 26 15:35:20 2013 +0100
@@ -426,9 +426,6 @@
     ttyLocker ttyl;
     tty->print_cr("[%d Interpreted Frame]", ++unpack_counter);
     iframe()->print_on(tty);
-    RegisterMap map(thread);
-    vframe* f = vframe::new_vframe(iframe(), &map, thread);
-    f->print();
 
     tty->print_cr("locals size     %d", locals()->size());
     tty->print_cr("expression size %d", expressions()->size());