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

Value methods for platform dependent math functions constant fold incorrectly

XMLWordPrintable

    • b33
    • 6
    • b08
    • sparc
    • solaris_9

        This is actually a long standing issue but has only recently come to light. C2 uses platform dependent Nodes to take advantage of hardware instructions for trig and log functions. All of these nodes have Value methods which will constant fold a constant input. The problem is that the SharedRuntime version of the functions are the strict ones but the platform dependent ones aren't strict so this can lead to different values being returned. The fix is to stop constant folding these operations.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: