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

Number of make jobs wrong for bootcycle-images target

XMLWordPrintable

    • b11
    • generic
    • linux

        We've discovered that bootcycle builds may run out of resources due to bad jobs config.

        In make/Main.gmk around line 324 where the bootcycle-images target is defined we see:

                  +$(MAKE) $(MAKE_ARGS) -f $(TOPDIR)/make/Init.gmk PARALLEL_TARGETS=$(BOOTCYCLE_TARGET) \
                      JOBS= SPEC=$(dir $(SPEC))bootcycle-spec.gmk main

        So it's using 'JOBS=' which corresponds to 'make -j' invokation without an argument unconditionally. That is, make is free to use any number of parallel jobs for the bootcycle-images target even though configure might have had option "--with-num-cores=<NUM>".

        For background info see this mail thread:

        http://mail.openjdk.java.net/pipermail/build-dev/2017-April/018929.html

              sgehwolf Severin Gehwolf
              sgehwolf Severin Gehwolf
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: