8059370: Unnecessary work in deoptimizing recompilation
authorattila
Wed, 01 Oct 2014 10:26:25 +0200
changeset 26888 2722a9c501a5
parent 26887 f7e8b7f8f554
child 26889 dba314d7a634
8059370: Unnecessary work in deoptimizing recompilation Reviewed-by: jlaskey, lagergren
nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/CompiledFunction.java
--- a/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/CompiledFunction.java	Mon Sep 29 14:39:58 2014 -0700
+++ b/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/CompiledFunction.java	Wed Oct 01 10:26:25 2014 +0200
@@ -814,8 +814,6 @@
             compiler.persistClassInfo(cacheKey, normalFn);
         }
 
-        FunctionNode fn2 = effectiveOptInfo.reparse();
-        fn2 = compiler.compile(fn2, CompilationPhases.COMPILE_UPTO_BYTECODE);
         log.info("Done.");
 
         final boolean canBeDeoptimized = normalFn.canBeDeoptimized();