Mercurial > hg > graal-jvmci-8
diff c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/VMExitsNative.java @ 1438:a7a0ef3c6858
Added timing printout on VM shutdown.
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Mon, 25 Oct 2010 18:35:34 +0200 |
parents | 9e5e83ca2259 |
children | d0c8d3a2a7e8 |
line wrap: on
line diff
--- a/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/VMExitsNative.java Mon Oct 25 16:47:52 2010 +0200 +++ b/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/VMExitsNative.java Mon Oct 25 18:35:34 2010 +0200 @@ -36,6 +36,8 @@ */ public class VMExitsNative implements VMExits { + public static boolean compileMethods = true; + @Override public boolean setOption(String option) { if (option.length() == 0) { @@ -100,6 +102,11 @@ @Override public void compileMethod(long methodVmId, String name, int entryBCI) { + + if (!compileMethods) { + return; + } + try { Compiler compiler = Compiler.getInstance(); HotSpotMethodResolved riMethod = new HotSpotMethodResolved(methodVmId, name); @@ -118,6 +125,7 @@ t.printStackTrace(new PrintWriter(out)); Logger.info("Compilation interrupted:\n" + out.toString()); } + System.gc(); } @Override