Uploaded image for project: 'JikesRVM'
  1. JikesRVM
  2. RVM-15

Bad GC Map at O3 in VM_OptMachineCodeMap.generateMCInformation

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Compiler: Optimizing
    • Labels:
      None

      Description

      The method VM_OptMachineCodeMap.generateMCInformation produces an invalid gc map at O3 level optimization.

      To reproduce bug, change "test.configs" in build/test-runs/gcmap-sanity.properties so that it includes "gcstress_Opt_3" and re-run the tests via

      ant -f test.xml -Dtest-run.name=gcmap-sanity

      Tests will start failing with output like

      validRef: TIB outside heap, ref = 0x9d800a24 tib = 0x00000000

      Invalid ref reported while scanning stack

      — METHOD (OPT)
      Lorg/jikesrvm/compilers/opt/VM_OptMachineCodeMap;.generateMCInformation(Lorg/jikesrvm/compilers/opt/ir/OPT_GCIRMap;)Lorg/jikesrvm/compilers/opt/VM_OptMachineCodeMap;
      — fp = 0x6b29fcc4 code base = 0x5b8c1ef4 code offset =0x00003243 0x6dc2fbf4:REF=0x9d800a24 TIB=0x00000000 STATUS=0x00000000 (INVALID TIB:CLASS NOT ACCESSIBLE)
      ...
      Dumping stack starting at frame with bad ref:
      – Stack –
      Lorg/jikesrvm/compilers/opt/VM_OptMachineCodeMap;generateMCInformation(Lorg/jikesrvm/compilers/opt/ir/OPT_GCIRMap;)Lorg/jikesrvm/compilers/opt/VM_OptMachineCodeMap; at line 398
      Lorg/jikesrvm/compilers/opt/VM_OptMachineCodeMap;create(Lorg/jikesrvm/compilers/opt/ir/OPT_IR;I)Lorg/jikesrvm/compilers/opt/VM_OptMachineCodeMap; at line 99
      Lorg/jikesrvm/compilers/opt/VM_OptCompiledMethod;createFinalMCMap(Lorg/jikesrvm/compilers/opt/ir/OPT_IR;I)V at line 438

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pdonald Peter Donald
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: