Mercurial > hg > truffle
comparison c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/VMExitsNative.java @ 1479:71cd4b9610eb
Two fixes for DaCapo / SpecJVM2008 runs.
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Sat, 27 Nov 2010 14:30:07 +0100 |
parents | ef7761803480 |
children | 8d88c9ac9247 |
comparison
equal
deleted
inserted
replaced
1478:5571b97fc1ec | 1479:71cd4b9610eb |
---|---|
24 import java.io.*; | 24 import java.io.*; |
25 import java.lang.reflect.*; | 25 import java.lang.reflect.*; |
26 import java.util.*; | 26 import java.util.*; |
27 | 27 |
28 import com.sun.c1x.*; | 28 import com.sun.c1x.*; |
29 import com.sun.c1x.debug.*; | |
29 import com.sun.cri.ci.*; | 30 import com.sun.cri.ci.*; |
30 import com.sun.cri.ri.*; | 31 import com.sun.cri.ri.*; |
31 import com.sun.hotspot.c1x.logging.*; | 32 import com.sun.hotspot.c1x.logging.*; |
32 | 33 |
33 /** | 34 /** |
136 | 137 |
137 if (result.bailout() != null) { | 138 if (result.bailout() != null) { |
138 StringWriter out = new StringWriter(); | 139 StringWriter out = new StringWriter(); |
139 result.bailout().printStackTrace(new PrintWriter(out)); | 140 result.bailout().printStackTrace(new PrintWriter(out)); |
140 Throwable cause = result.bailout().getCause(); | 141 Throwable cause = result.bailout().getCause(); |
141 Logger.info("Bailout:\n" + out.toString()); | 142 TTY.println("Bailout:\n" + out.toString()); |
142 if (cause != null) { | 143 if (cause != null) { |
143 Logger.info("Trace for cause: "); | 144 Logger.info("Trace for cause: "); |
144 for (StackTraceElement e : cause.getStackTrace()) { | 145 for (StackTraceElement e : cause.getStackTrace()) { |
145 String current = e.getClassName() + "::" + e.getMethodName(); | 146 String current = e.getClassName() + "::" + e.getMethodName(); |
146 String type = ""; | 147 String type = ""; |
155 HotSpotTargetMethod.installMethod(riMethod, result.targetMethod()); | 156 HotSpotTargetMethod.installMethod(riMethod, result.targetMethod()); |
156 } | 157 } |
157 } catch (Throwable t) { | 158 } catch (Throwable t) { |
158 StringWriter out = new StringWriter(); | 159 StringWriter out = new StringWriter(); |
159 t.printStackTrace(new PrintWriter(out)); | 160 t.printStackTrace(new PrintWriter(out)); |
160 Logger.info("Compilation interrupted:\n" + out.toString()); | 161 TTY.println("Compilation interrupted:\n" + out.toString()); |
161 throw t; | 162 throw t; |
162 } | 163 } |
163 } | 164 } |
164 | 165 |
165 @Override | 166 @Override |