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

C2: Allow speculative Div/Mod on RISC architectures

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 21
    • hotspot

      C2 optimizations can lead to execution of integer Div/Mod instructions before the corresponding zero check. Changes were made to prevent this because some CISC architectures (x86, s390) raise SIGFPE when dividing by zero (see related issues).
      However, some RISC architectures (PPC64, AARCH64, RISC-V?) don't raise signals and, hence, allow division speculatively before the zero check.
      We should check if allowing Div/Mod instructions to float on these architectures is beneficial and possibly adapt the changes which were made for CISC architectures.

            Unassigned Unassigned
            mdoerr Martin Doerr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: