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

Improve make build performance

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • 8
    • 7
    • infrastructure
    • generic, x86
    • generic, windows_xp

      See similar fixes in 6875240.
      Also include changes for .SUFFIXES trimming.
      The basic observation is that we have make running make all over the place, maybe 200+ times. Each make re-processes all the Defs-*.gmk files over and over again. Many of the rules in these Defs-*.sh files actuall cause exec's to happen over and over.

      One approach was to have the makefile export the settings to the shell environment so that subsequent nested makes just use the env var settings from the outer level make process. That was what this change was for.

      Another approach was to do a one time 'configure' that creates a makefile Defs-config.gmk for inclusion that would have a bunch of simple var settings and no exec logic. Maybe create a configure.sh that creates this file once, and gets re-used on subsequent builds. That way the vars stick around for multiple top level makes. But something would need to make sure that if the environment around it changes, that it gets re-generated. Setting PATH might be a little tricky.

            ohair Kelly Ohair (Inactive)
            ohair Kelly Ohair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: