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

Unused runtime calls to drem/frem should be removed

XMLWordPrintable

    • b13

      Attached Test2.java demonstrates that C2 does not remove unused runtime calls emitted for drem/frem.

      java -XX:-TieredCompilation -XX:CompileCommand=print,Test2::test1 -Xbatch Test2.java

      [...]

        0x00007467451ccd44: callq *%r10
        0x00007467451ccd47: nopl 0x0(%rax,%rax,1) ;*frem {reexecute=0 rethrow=0 return_oop=0}
                                                                  ; - Test2::test2@2 (line 8)
                                                                  ; {post_call_nop}
        0x00007467451ccd4f: add $0x10,%rsp


      [...]

      This is a follow-up from JDK-8345766.

            mchevalier Marc Chevalier
            thartmann Tobias Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: