Harmony
  1. Harmony
  2. HARMONY-1906

[drlvm][kernel] Dacapo.antlr benchmark works incorreclty with DRLVM

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      WinXP

      Description

      I've tried to run Dacapo benchmark (http://dacapobench.org) with the latest drlvm build. Antlr benchmark works incorrectly with DRLVM
      Here is the output of execution (java -jar dacapo-2006-10-RC2.jar -debug antlr ):
      Util.getURL: returns jar:file:/C:/work/benchmarks/DaCapo_beta/dacapo-2006-10-RC2.jar!/data/antlr.zip
      Unpacking antlr/
      Unpacking antlr/cpp/
      Unpacking antlr/csharp/
      Unpacking antlr/java/
      Unpacking antlr/CommonTokenTypes.txt
      Unpacking antlr/JavaTokenTypes.txt
      Unpacking antlr/cpp/CommonTokenTypes.txt
      Unpacking antlr/cpp/P.g
      Unpacking antlr/cpp/calc.g
      Unpacking antlr/cpp/column.g
      Unpacking antlr/cpp/data.g
      Unpacking antlr/cpp/expr.g
      Unpacking antlr/cpp/html.g
      Unpacking antlr/cpp/idl.g
      Unpacking antlr/cpp/instr.g
      Unpacking antlr/cpp/java.g
      Unpacking antlr/cpp/java.tree.g
      Unpacking antlr/cpp/javadoclex.g
      Unpacking antlr/cpp/javadocparse.g
      Unpacking antlr/cpp/javalex.g
      Unpacking antlr/cpp/javaparse.g
      Unpacking antlr/cpp/lexer.g
      Unpacking antlr/cpp/parser1.g
      Unpacking antlr/cpp/parser2.g
      Unpacking antlr/cpp/rewrite.g
      Unpacking antlr/cpp/subc.g
      Unpacking antlr/cpp/t.g
      Unpacking antlr/cpp/tinyc.g
      Unpacking antlr/cpp/treewalk.g
      Unpacking antlr/cpp/unicode.g
      Unpacking antlr/csharp/CommonTokenTypes.txt
      Unpacking antlr/csharp/calc.g
      Unpacking antlr/csharp/data.g
      Unpacking antlr/csharp/expr.g
      Unpacking antlr/csharp/html.g
      Unpacking antlr/csharp/idl.g
      Unpacking antlr/csharp/instr.g
      Unpacking antlr/csharp/java.g
      Unpacking antlr/csharp/java.tree.g
      Unpacking antlr/csharp/javadoclex.g
      Unpacking antlr/csharp/javadocparse.g
      Unpacking antlr/csharp/javalex.g
      Unpacking antlr/csharp/javaparse.g
      Unpacking antlr/csharp/lexer.g
      Unpacking antlr/csharp/t.g
      Unpacking antlr/csharp/tinyc.g
      Unpacking antlr/csharp/track.g
      Unpacking antlr/csharp/unicode.g
      Unpacking antlr/java.g
      Unpacking antlr/java.tree.g
      Unpacking antlr/java/CommonTokenTypes.txt
      Unpacking antlr/java/P.g
      Unpacking antlr/java/TinyBasic.g
      Unpacking antlr/java/TinyBasicTreeWalker.g
      Unpacking antlr/java/calc.g
      Unpacking antlr/java/data.g
      Unpacking antlr/java/expr.g
      Unpacking antlr/java/html.g
      Unpacking antlr/java/idl.g
      Unpacking antlr/java/instr.g
      Unpacking antlr/java/java.g
      Unpacking antlr/java/java.tree.g
      Unpacking antlr/java/javadoclex.g
      Unpacking antlr/java/javadocparse.g
      Unpacking antlr/java/javalex.g
      Unpacking antlr/java/javaparse.g
      Unpacking antlr/java/lexer.g
      Unpacking antlr/java/links.g
      Unpacking antlr/java/pascal.g
      Unpacking antlr/java/rewrite.g
      Unpacking antlr/java/subc.g
      Unpacking antlr/java/t.g
      Unpacking antlr/java/tinyc.g
      Unpacking antlr/java/track.g
      Unpacking antlr/java/treewalk.g
      Unpacking antlr/java/unicode.g
      Unpacking antlr/java/xml.g
      Benchmark parameters: -o ./scratch -iterations 2 -grammars antlr/cpp/calc.g antlr/cpp/column.g antlr/cpp/data.g antlr/cpp/expr.g antlr/cpp/html.g antlr/cpp/idl.g antlr/cpp/instr.g antlr/cpp/javadoclex.g antlr/cpp/javadocparse.g antlr/cpp/java.g antlr/cpp/javalex.g antlr/cpp/javaparse.g antlr/cpp/java.tree.g antlr/cpp/lexer.g antlr/cpp/parser1.g antlr/cpp/parser2.g antlr/cpp/P.g antlr/cpp/rewrite.g antlr/cpp/subc.g antlr/cpp/t.g antlr/cpp/treewalk.g antlr/csharp/calc.g antlr/csharp/data.g antlr/csharp/expr.g antlr/csharp/html.g antlr/csharp/idl.g antlr/csharp/instr.g antlr/csharp/javadoclex.g antlr/csharp/javadocparse.g antlr/csharp/java.g antlr/csharp/javalex.g antlr/csharp/javaparse.g antlr/csharp/java.tree.g antlr/csharp/lexer.g antlr/csharp/t.g antlr/csharp/tinyc.g antlr/csharp/track.g antlr/csharp/unicode.g antlr/java/calc.g antlr/java/data.g antlr/java/expr.g antlr/java/html.g antlr/java/idl.g antlr/java/instr.g antlr/java/javadoclex.g antlr/java/javadocparse.g antlr/java/java.g antlr/java/javalex.g antlr/java/javaparse.g antlr/java/java.tree.g antlr/java/lexer.g antlr/java/links.g antlr/java/pascal.g antlr/java/P.g antlr/java/rewrite.g antlr/java/subc.g antlr/java/t.g antlr/java/TinyBasic.g antlr/java/TinyBasicTreeWalker.g antlr/java/tinyc.g antlr/java/track.g antlr/java/treewalk.g antlr/java/unicode.g antlr/java/xml.g
      ===== DaCapo antlr starting =====
      Running antlr on grammar antlr/cpp/calc.g
      ANTLR Parser Generator Version 2.7.5 (20050128) 1989-2005 jGuru.com

      With RI I have the following output:
      ===== DaCapo antlr starting =====
      Running antlr on grammar antlr/cpp/calc.g
      ANTLR Parser Generator Version 2.7.2 1989-2003 jGuru.com
      Running antlr on grammar antlr/cpp/column.g
      ANTLR Parser Generator Version 2.7.2 1989-2003 jGuru.com
      Running antlr on grammar antlr/cpp/data.g
      ANTLR Parser Generator Version 2.7.2 1989-2003 jGuru.com
      Running antlr on grammar antlr/cpp/expr.g
      ANTLR Parser Generator Version 2.7.2 1989-2003 jGuru.com
      Running antlr on grammar antlr/cpp/html.g
      ...
      .\scratch\antlr\java\treewalk.g:20:17: k==1:"else"
      Running antlr on grammar antlr/java/unicode.g
      ANTLR Parser Generator Version 2.7.2 1989-2003 jGuru.com
      Running antlr on grammar antlr/java/xml.g
      ANTLR Parser Generator Version 2.7.2 1989-2003 jGuru.com
      .\scratch\antlr\java\xml.g:73: warning:nongreedy block may exit incorrectly due
      .\scratch\antlr\java\xml.g:73: to limitations of linear approximate lookahead (first k-1 sets
      .\scratch\antlr\java\xml.g:73: in lookahead not singleton).
      ===== DaCapo antlr PASSED in 8043 msec =====

        Issue Links

          Activity

          Vladimir Beliaev made changes -
          Link This issue is blocked by HARMONY-2052 [ HARMONY-2052 ]
          Mikhail Fursov made changes -
          Component/s DRLVM [ 12311272 ]
          Summary [drlvm] Dacapo.antlr benchmark works incorreclty with DRLVM [drlvm][kernel] Dacapo.antlr benchmark works incorreclty with DRLVM
          Hide
          Naveen Neelakantam added a comment -

          The workaround in HARMONY-2130 worked for me

          Show
          Naveen Neelakantam added a comment - The workaround in HARMONY-2130 worked for me
          Hide
          Naveen Neelakantam added a comment -

          It is a problem with DaCapo? I am seeing the same problem with the 1.0 DaCapo release.

          Show
          Naveen Neelakantam added a comment - It is a problem with DaCapo? I am seeing the same problem with the 1.0 DaCapo release.
          Alexey Varlamov made changes -
          Field Original Value New Value
          Link This issue duplicates HARMONY-2130 [ HARMONY-2130 ]
          Hide
          Vladimir Strigun added a comment -

          Plese close the issue. Investigation shows that it's not a problem of DRLVM, it's a problem of Dacapo.

          Show
          Vladimir Strigun added a comment - Plese close the issue. Investigation shows that it's not a problem of DRLVM, it's a problem of Dacapo.
          Vladimir Strigun created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Vladimir Strigun
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development