We're updating the issue view to help you get more done. 

terminal not in grammar: new

Description

I've seen this occasionally, most recently in the dacapo regressions, running antlr 'large'.

dist/FastAdaptiveGenMS_ia32-linux/rvm -Xmx512m -Xms512m -jar dacapo-2006-10-MR2.jar -s large -n 2 antlr
[...]
Exception occurred in OPT_ConvertLIRtoMIR
org.jikesrvm.compilers.opt.OPT_OptimizingCompilerException: ERROR produced in module:BURS
terminal not in grammar: new

at org.jikesrvm.compilers.opt.ia32.OPT_BURS_STATE.label(OPT_BURS_STATE.java:6639)
at org.jikesrvm.compilers.opt.OPT_NormalBURS.labelTrees(OPT_NormalBURS.java:332)
at org.jikesrvm.compilers.opt.OPT_NormalBURS.invoke(OPT_NormalBURS.java:71)
at org.jikesrvm.compilers.opt.OPT_ConvertLIRtoMIR$DoBURS.perform(OPT_ConvertLIRtoMIR.java:407)
at org.jikesrvm.compilers.opt.OPT_CompilerPhase.performPhase(OPT_CompilerPhase.java:202)
at org.jikesrvm.compilers.opt.OPT_OptimizationPlanAtomicElement.perform(OPT_OptimizationPlanAtomicElement.java:88)
at org.jikesrvm.compilers.opt.OPT_OptimizationPlanCompositeElement.perform(OPT_OptimizationPlanCompositeElement.java:141)
at org.jikesrvm.compilers.opt.OPT_OptimizationPlanCompositeElement.perform(OPT_OptimizationPlanCompositeElement.java:141)
at org.jikesrvm.compilers.opt.OPT_CompilationPlan.execute(OPT_CompilationPlan.java:107)
at org.jikesrvm.compilers.opt.OPT_Compiler.compile(OPT_Compiler.java:219)
at org.jikesrvm.compilers.common.VM_RuntimeCompiler.optCompile(VM_RuntimeCompiler.java:358)
at org.jikesrvm.compilers.common.VM_RuntimeCompiler.recompileWithOpt(VM_RuntimeCompiler.java:537)
at org.jikesrvm.adaptive.controller.VM_ControllerPlan.doRecompile(VM_ControllerPlan.java:179)
at org.jikesrvm.adaptive.recompilation.VM_CompilationThread.run(VM_CompilationThread.java:53)
-13 LABEL0 Frequency: 1.0
-2 EG ir_prologue l0psa(Lantlr/TokenQueue;,x,d), l2psi(I,d) =
0 G yieldpoint_prologue
5 ia32_cmp AF CF OF PF SF ZF = l2psi(I,d), 0
5 ia32_jcc GE, LABEL2, Probability: 1.0 AF CF OF PF SF ZF
-1 ia32_jmp LABEL1
-1 bbend BB0 (ENTRY)
15 LABEL2 Frequency: 1.0
18 ia32_cmp AF CF OF PF SF ZF = l2psi(I,d), 0x3fffffff
18 ia32_jcc LT, LABEL4, Probability: 1.0 AF CF OF PF SF ZF
-1 ia32_jmp LABEL3
-1 bbend BB2
28 LABEL4 Frequency: 1.0
29 ia32_mov l14pi(B) = 2
-1 bbend BB4
30 LABEL5 Frequency: 1.0
30 G yieldpoint_backedge
32 ia32_cmp AF CF OF PF SF ZF = l14pi(I), l2psi(I,d)
32 ia32_jcc GE, LABEL7, Probability: 1.0 AF CF OF PF SF ZF
-1 ia32_jmp LABEL6
-1 bbend BB5
42 LABEL7 Frequency: 1.0
2 EG ia32_call t29sa([Lantlr/Token;,p) AF CF OF PF SF ZF = <0+1459883284>DW, static"< BootstrapCL, Lorg/jikesrvm/runtime/VM_Runtime; >.resolvedNewArray (III[Ljava/lang/Object;IIII)Ljava/lang/Object;",
l14pi(I), 2, 12, 0x6702fe88, 0, 4, 12, 23080
-11 EG ia32_call AF CF OF PF SF ZF = <0+1459885408>DW, static"< BootstrapCL, Lorg/jikesrvm/memorymanagers/mminterface/MM_Interface; >.putfieldWriteBarrier (Ljava/lang/Object;Lorg/vmmagic/unboxed/Offset;Ljava/lang/Object;I)V", l0psa(Lantlr/TokenQueue;,x,d),
-4, t29sa([Lantlr/Token;,p), 36338
11 ia32_lea t31si(I) = <[l14pi(I)]+-1>DW
12 ia32_mov <[l0psa(Lantlr/TokenQueue;,x,d)]>DW (<mem loc: Lantlr/TokenQueue;.sizeLessOne>, <TRUEGUARD>) = t31si(I)
22 ia32_mov <[l0psa(Lantlr/TokenQueue;,x,d)]+8>DW (<mem loc: Lantlr/TokenQueue;.nbrEntries>, <TRUEGUARD>) = 0
17 ia32_mov <[l0psa(Lantlr/TokenQueue;,x,d)]+4>DW (<mem loc: Lantlr/TokenQueue;.offset>, <TRUEGUARD>) = 0
-1 bbend BB7
-14 LABEL8 Frequency: 1.0
-10 G yieldpoint_epilogue
-3 ia32_ret <unused>, <unused>, <unused>
-1 bbend BB8
8 LABEL1 (Infrequent) Frequency: 0.0
7 EG ia32_call AF CF OF PF SF ZF = <0+1459883384>DW, static"< BootstrapCL, Lorg/jikesrvm/runtime/VM_Runtime; >.checkAllocationCountDownToGC ()V"
39 EG ia32_call t52sa(Ljava/lang/Object AF CF OF PF SF ZF = <0+1459885500>DW, static"< BootstrapCL, Lorg/jikesrvm/memorymanagers/mminterface/MM_Interface; >.allocateArrayInternal (II[Ljava/lang/Object;IIII)Ljava/lang/Object;",
16, 76, 0x6702fe88, 0, 4, 12, 23078
-11 EG ia32_call AF CF OF PF SF ZF = <0+1459885408>DW, static"< BootstrapCL, Lorg/jikesrvm/memorymanagers/mminterface/MM_Interface; >.putfieldWriteBarrier (Ljava/lang/Object;Lorg/vmmagic/unboxed/Offset;Ljava/lang/Object;I)V", l0psa(Lantlr/TokenQueue;,x,d),
-4, t52sa([Lantlr/Token;,p), 36338
12 ia32_mov <[l0psa(Lantlr/TokenQueue;,x,d)]>DW (<mem loc: Lantlr/TokenQueue;.sizeLessOne>, <TRUEGUARD>) = 15
22 ia32_mov <[l0psa(Lantlr/TokenQueue;,x,d)]+8>DW (<mem loc: Lantlr/TokenQueue;.nbrEntries>, <TRUEGUARD>) = 0
17 ia32_mov <[l0psa(Lantlr/TokenQueue;,x,d)]+4>DW (<mem loc: Lantlr/TokenQueue;.offset>, <TRUEGUARD>) = 0
14 ia32_jmp LABEL8
-1 bbend BB1
21 LABEL3 (Infrequent) Frequency: 0.0
7 int_load t80sa(Lorg/jikesrvm/ArchitectureSpecific$VM_CodeArray = 0x57040274, 2820, <unused>, <unused>
7 EG call AF CF OF PF SF ZF = t80sa(Lorg/jikesrvm/ArchitectureSpecific$VM_CodeArray, static"< BootstrapCL, Lorg/jikesrvm/runtime/VM_Runtime; >.checkAllocationCountDownToGC ()V", <unused>
13 EG new t72sa(Ljava/lang/OutOfMemoryError;,p) = java.lang.OutOfMemoryError
17 int_load t81sa(Lorg/jikesrvm/ArchitectureSpecific$VM_CodeArray = 0x57040274, 48828, <unused>, <unused>
17 EG call AF CF OF PF SF ZF = t81sa(Lorg/jikesrvm/ArchitectureSpecific$VM_CodeArray, special_exact"< BootstrapCL, Ljava/lang/OutOfMemoryError; >.<init> ()V", <TRUEGUARD>,
t72sa(Ljava/lang/OutOfMemoryError;,p)
20 EG athrow t72sa(Ljava/lang/OutOfMemoryError;,p)
-1 bbend BB3
35 LABEL6 (Infrequent) Frequency: 0.0
37 int_move t75i(I) = 0
37 int_shl t76si(I) = l14pi(I), 1
37 int_move t75i(I) = t76si(I)
37 int_move l14pi(I) = t75i(I)
39 goto LABEL5
-1 bbend BB6

Environment

ia32-linux

Status

Assignee

Daniel Frampton

Reporter

Robin Garner

Labels

None

External issue ID

None

Components

Fix versions

Affects versions

2.9.1

Priority

Medium