JRuby benchFibStackDepth fails on server jvm
--------------------------------------------

                 Key: JRUBY-1198
                 URL: http://jira.codehaus.org/browse/JRUBY-1198
             Project: JRuby
          Issue Type: Bug
          Components: Compiler
    Affects Versions: JRuby 1.x
         Environment: Ubuntu x86 Feisty, Java HotSpot(TM) Server VM (build 
1.6.0-b105, mixed mode), jruby trunk r3986

            Reporter: Damian Steer


Note: the failure doesn't occur every run.

Four runs, first two with client vm. Note that estimates vary.

{noformat}
$ jruby test/bench/benchFibStackDepth.rb 
Estimating max fib recursion. This will be slightly lower than actual.
<snip>
Maximum single-recursive fib stack depth: 1380
{noformat}

{noformat}
$ jruby test/bench/benchFibStackDepth.rb 
Estimating max fib recursion. This will be slightly lower than actual.
<snip>
Maximum single-recursive fib stack depth: 1388
{noformat}

{noformat}
$ jruby -J-server test/bench/benchFibStackDepth.rb 
Estimating max fib recursion. This will be slightly lower than actual.
good: 1
good: 2
good: 4
good: 8
good: 16
good: 32
good: 64
good: 128
good: 256
good: 512
good: 1024
good: 2048
bad: 4096
bad: 3072
good: 2560
good: 2816
good: 2944
good: 3008
good: 3040
good: 3056
good: 3064
good: 3068
bad: 3070
good: 3069
Maximum single-recursive fib stack depth: 3069
{noformat}

{noformat}
$ jruby -J-server test/bench/benchFibStackDepth.rb 
Estimating max fib recursion. This will be slightly lower than actual.
good: 1
good: 2
good: 4
good: 8
good: 16
good: 32
good: 64
good: 128
good: 256
good: 512
good: 1024
good: 2048
bad: 4096
bad: 3072
bad: 2560
good: 2304
good: 2432
good: 2496
good: 2528
good: 2544
good: 2552
good: 2556
bad: 2558
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
        at org.jruby.runtime.ThreadContext.popFrame(ThreadContext.java:301)
        at 
org.jruby.runtime.ThreadContext.postDefMethodInternalCall(ThreadContext.java:663)
        at 
org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:150)
        at org.jruby.RubyObject.callMethod(RubyObject.java:589)
        at 
org.jruby.runtime.Dispatcher$DefaultDispatcher.callMethod(Dispatcher.java:15)
        at org.jruby.RubyObject.callMethod(RubyObject.java:507)
        at 
org.jruby.evaluator.EvaluationState.vcallNode(EvaluationState.java:1740)
        at 
org.jruby.evaluator.EvaluationState.evalInternal(EvaluationState.java:381)
        at 
org.jruby.evaluator.EvaluationState.evStrNode(EvaluationState.java:1000)
        at 
org.jruby.evaluator.EvaluationState.evalInternal(EvaluationState.java:248)
        at 
org.jruby.evaluator.EvaluationState.dStrNode(EvaluationState.java:930)
        at 
org.jruby.evaluator.EvaluationState.evalInternal(EvaluationState.java:238)
        at 
org.jruby.evaluator.EvaluationState.setupArgs(EvaluationState.java:2197)
        at 
org.jruby.evaluator.EvaluationState.fCallNode(EvaluationState.java:1010)
        at 
org.jruby.evaluator.EvaluationState.evalInternal(EvaluationState.java:252)
        at 
org.jruby.evaluator.EvaluationState.blockNode(EvaluationState.java:534)
        at 
org.jruby.evaluator.EvaluationState.evalInternal(EvaluationState.java:200)
        at 
org.jruby.evaluator.EvaluationState.rootNode(EvaluationState.java:1599)
        at 
org.jruby.evaluator.EvaluationState.evalInternal(EvaluationState.java:355)
        at org.jruby.evaluator.EvaluationState.eval(EvaluationState.java:163)
        at org.jruby.Ruby.eval(Ruby.java:289)
        at org.jruby.Ruby.compileOrFallbackAndRun(Ruby.java:320)
        at org.jruby.Main.runInterpreter(Main.java:225)
        at org.jruby.Main.runInterpreter(Main.java:174)
        at org.jruby.Main.run(Main.java:120)
        at org.jruby.Main.main(Main.java:95)
{noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to