changeset 7112:60bef2672469

changed System.err output to TTY to avoid that DaCapo benchmarks fail digest validation
author Christian Haeubl <haeubl@ssw.jku.at>
date Fri, 30 Nov 2012 10:40:07 +0100
parents e0fcf7802786
children acfca8c77dd2
files graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/CompilerToVMImpl.java src/share/vm/code/nmethod.cpp
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/CompilerToVMImpl.java	Fri Nov 30 08:30:22 2012 +0100
+++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/bridge/CompilerToVMImpl.java	Fri Nov 30 10:40:07 2012 +0100
@@ -28,6 +28,7 @@
 import java.lang.reflect.*;
 
 import com.oracle.graal.api.meta.*;
+import com.oracle.graal.debug.*;
 import com.oracle.graal.hotspot.*;
 import com.oracle.graal.hotspot.meta.*;
 
@@ -63,7 +64,7 @@
         int result = installCode0(comp, code, info);
         if (result != OK.ordinal()) {
             if (successfulInstallations < MINIMUM_SUCCESSFUL_INSTALLATIONS_PER_FAILURE) {
-                System.err.println("Failed to install compiled code for " + comp.method + " [reason: " + CodeInstallResult.values()[result] + "]");
+                TTY.println("Failed to install compiled code for " + comp.method + " [reason: " + CodeInstallResult.values()[result] + "]");
             }
             successfulInstallations = 0L;
         } else {
--- a/src/share/vm/code/nmethod.cpp	Fri Nov 30 08:30:22 2012 +0100
+++ b/src/share/vm/code/nmethod.cpp	Fri Nov 30 10:40:07 2012 +0100
@@ -1449,7 +1449,8 @@
   }
 
   if (TraceCreateZombies) {
-    tty->print_cr("nmethod <" INTPTR_FORMAT "> code made %s", this, (state == not_entrant) ? "not entrant" : "zombie");
+    ResourceMark m;
+    tty->print_cr("nmethod <" INTPTR_FORMAT "> %s code made %s", this, this->method()->name_and_sig_as_C_string(), (state == not_entrant) ? "not entrant" : "zombie");
   }
 
   // Make sweeper aware that there is a zombie method that needs to be removed