Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6433579

save_live_registers shouldn't finit FPU after saving FPU registers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 6
    • 6
    • hotspot
    • b88
    • sparc
    • solaris_9

      The resolve stubs save off the FPU state before transitioning out the runtime and there's a line of code which uses finit to reset the FPU before transitioning out. This is ok if the VM can never execute an Java code inside the runtime call. For C2 this is true but C1 can use execute this code at an unresolved call site which can cause initialization. When this happens the Java code executed with the wrong FPU control word and bad things can happen. This is reproducible by simply using java -client -Xcomp -XX:+VerifyFPU foo on a fastdebug build.

            never Tom Rodriguez
            never Tom Rodriguez
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: