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

Use --hash-style=gnu for gcc

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 16
    • Component/s: infrastructure
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b02

      Description

      When support for gnu hash tables were added to the gcc toolchains, the OpenJDK build system added a hack to change --hash-style=gnu to --hash-style=both unconditionally, citing compatibility concerns.

      --hash-style=gnu has a very slight performance advantage over --hash-style=both (very small static footprint reductions, tiny startup cost differences). Both --hash-style=gnu and --hash-style=both have a small to potentially large performance advantage over --hash-style=sysv

      We should make either --hash-style=both or --hash-style=gnu the default.

      I'd prefer making --hash-style=gnu the default, and allow users to configure and build with an explicit --hash-style of their own choice (gnu, sysv, both) when building for legacy OSes which doesn't support gnu-only.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ihse Magnus Ihse Bursie
              Reporter:
              redestad Claes Redestad
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: