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

[bugfix from MRP] JNI compiler fails to pass > 1 FP arg if not using SSE2

    Details

      Description

      Quote from the MRP issue (archived at https://web.archive.org/web/20150521201219/http://jira.codehaus.org/browse/MRP-5 ):

      FSTP always stores FP0, also popping it. The code in the JNI compiler tries to emit FSTP FP0 to FP4, failing the IA32 assembler assertions.

      The stack trace is:

      -- Stack --
      (0x68d12c10 3339)   at [0x68d12c10, 0x6434b556] Lorg/jikesrvm/VM; sysFail(Ljava/lang/String;)V at line 2286
      (0x68d12c30 3075)   at [0x68d12c30, 0x6434b663] Lorg/jikesrvm/VM; _assertionFailure(Ljava/lang/String;Ljava/lang/String;)V at line 641
      (0x68d12c58 3074)   at [0x68d12c58, 0x6434b6f1] Lorg/jikesrvm/VM; _assert(ZLjava/lang/String;Ljava/lang/String;)V at line 624
      (0x68d12c7c 3072)   at [0x68d12c7c, 0x640c7ff6] Lorg/jikesrvm/VM; _assert(Z)V at line 599
      (0x68d12ca4 10801)   at [0x68d12ca4, 0x642e46c9] Lorg/jikesrvm/compilers/common/assembler/ia32/Assembler; emitFSTP_RegInd_Reg(Lorg/jikesrvm/ia32/RegisterConstants$GPR;Lorg/jikesrvm/ia32/RegisterConstants$FPR;)V at line 46606
      (0x68d12d00 3483)   at [0x68d12d00, 0x64261723] Lorg/jikesrvm/jni/ia32/JNICompiler; compile(Lorg/jikesrvm/classloader/NativeMethod;)Lorg/jikesrvm/compilers/common/CompiledMethod; at line 267
      (0x68d12d4c 12590)   at [0x68d12d4c, 0x64033052] Lorg/jikesrvm/compilers/common/RuntimeCompiler; compile(Lorg/jikesrvm/classloader/NativeMethod;)Lorg/jikesrvm/compilers/common/CompiledMethod; at line 773
      (0x68d12d68 10709)   at [0x68d12d68, 0x6400a3ce] Lorg/jikesrvm/classloader/NativeMethod; genCode()Lorg/jikesrvm/compilers/common/CompiledMethod; at line 88
      

        Attachments

          Activity

            People

            • Assignee:
              ebrangs Erik Brangs
              Reporter:
              ebrangs Erik Brangs
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: