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

[JVMCI] expose Math assembler routines to JVMCI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 11
    • 9, 10, 11
    • hotspot

      The Graal specific assembly intrinsics for some java.lang.Math transcendental functions have the following issues:
      * some of them compute the wrong result (https://github.com/oracle/graal/issues/296)
      * for some input values, the result is correct but differs from the result computed by the interpreter, C1 and C2

      The immediate solution for this is to make GraalArithmeticStubs[1] false by default and directly use the HotSpot assembly. To do so, requires exposing the HotSpot assembly as a stub instead of simply using the SharedRuntime routines.

      The longer term solution (in a separate issue) is to port the HotSpot assembly into Graal. This will avoid the overhead of a stub call and will also benefit SubstrateVM.

            dnsimon Douglas Simon
            dnsimon Douglas Simon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: