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

[x86] sharedRuntimeTrig/sharedRuntimeTrans compiled without optimization

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b12
    • CPU:
      x86, x86_64
    • OS:
      linux

      Backports

        Description

        From make/hotspot/lib/JvmOverrideFiles.gmk around line 43 we see:

           ifeq ($(OPENJDK_TARGET_CPU_ARCH), x86)
            BUILD_LIBJVM_sharedRuntimeTrig.cpp_CXXFLAGS := -DNO_PCH $(CXX_O_FLAG_NONE)
            BUILD_LIBJVM_sharedRuntimeTrans.cpp_CXXFLAGS := -DNO_PCH $(CXX_O_FLAG_NONE)

        That is, those files get compiled without optimization. Looking at the code the reason seems to be that it was originally copied from fdlibm's code from core-libs. However, JDK-8170153 and more importantly JDK-8210416 will change that so that -O3 with -ffp-contract=off should work for linux.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                sgehwolf Severin Gehwolf
                Reporter:
                sgehwolf Severin Gehwolf
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: