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

Should use SUPPORTS_NATIVE_CX8 define to help C/C++ compiler elide blocks of code

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • hs25
    • hs25, 8
    • embedded
    • b52

    Backports

      Description

        If we change Vm_version::supports_cx8() code like so then C++ compiler will create smaller/faster code in callers of that function since the return value is a constant.

        #ifdef SUPPORTS_NATIVE_CX8
          static bool supports_cx8() {return true;}
        #else
          static bool supports_cx8() {return _supports_cx8;}
        #endif

        Attachments

          Issue Links

            Activity

              People

                bpittore Bill Pittore (Inactive)
                bpittore Bill Pittore (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: