Mercurial > hg > graal-compiler
changeset 10461:6b64601aa8c8
backout CTW memory usage code
author | twisti |
---|---|
date | Thu, 20 Jun 2013 20:50:25 -0700 |
parents | e799aba89b5d |
children | c88019cc87f6 |
files | graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompileTheWorld.java |
diffstat | 1 files changed, 0 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompileTheWorld.java Thu Jun 20 20:41:38 2013 -0700 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/CompileTheWorld.java Thu Jun 20 20:50:25 2013 -0700 @@ -218,18 +218,8 @@ */ private void compileMethod(HotSpotResolvedJavaMethod method) { try { - System.gc(); long start = System.currentTimeMillis(); - long before = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory(); vmToCompiler.compileMethod(method, StructuredGraph.INVOCATION_ENTRY_BCI, true, 10); - long after = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory(); - System.gc(); - long afterGC = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory(); - -// TTY.println(String.format("used: %6dK (before: %6dK, after: %6dK, after GC: %6dK)", (after - before) / 1024, before / 1024, after / 1024, afterGC / 1024) + -// " " + String.format("%s (%d bytes)", MetaUtil.format("%H::%n(%p)", method), method.getCodeSize())); - TTY.println("| %d | %d |", method.getCodeSize(), (after - before) / 1024); - compileTime += (System.currentTimeMillis() - start); compiledMethodsCounter++; method.reprofile(); // makes the method also not-entrant