Permalink
Browse files

1.0 tag for real

git-svn-id: http://svn.codehaus.org/jruby/tags/jruby-1_0@3855 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information...
2 parents ca6f5a3 + 8370009 commit 59ffbb42a9d511a7835da3330521524918782ed2 @enebo enebo committed Jun 7, 2007
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/org/jruby/internal/runtime/methods/DefaultMethod.java
@@ -35,7 +35,6 @@
import java.util.ArrayList;
import org.jruby.Ruby;
import org.jruby.RubyArray;
-import org.jruby.RubyBinding;
import org.jruby.RubyModule;
import org.jruby.RubyProc;
import org.jruby.ast.ArgsNode;
@@ -158,11 +157,10 @@ private void runJIT(Ruby runtime, ThreadContext context, String name) {
}
try {
- NodeCompilerFactory.confirmNodeIsSafe(argsNode);
-
callCount++;
if (callCount >= runtime.getInstanceConfig().getJitThreshold()) {
+ NodeCompilerFactory.confirmNodeIsSafe(argsNode);
// FIXME: Total duplication from DefnNodeCompiler...need to refactor this
final ArrayCallback evalOptionalValue = new ArrayCallback() {
public void nextValue(Compiler context, Object object, int index) {
@@ -215,10 +213,10 @@ public void compile(Compiler context) {
jitCompiledScript = (Script)sourceClass.newInstance();
if (runtime.getInstanceConfig().isJitLogging()) System.err.println("compiled: " + className + "." + name);
+ callCount = -1;
}
} catch (Exception e) {
if (runtime.getInstanceConfig().isJitLoggingVerbose()) System.err.println("could not compile: " + className + "." + name + " because of: \"" + e.getMessage() + '"');
- } finally {
callCount = -1;
}
}

0 comments on commit 59ffbb4

Please sign in to comment.