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

Java resource copy and clean should use MakeTargetDir macro

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 12
    • 12
    • infrastructure
    • None
    • b15
    • solaris

      In most places where we need to create a directory in a build recipe, we use a variant of the MakeDir macro in make/common/MakeBase.gmk. This macro checks if the directory exists before executing "mkdir -p" which reduces unneeded shell calls and improves efficiency. It also reduces the likelihood for instability on some platforms where concurrent calls to "mkdir -p" may fail.

      In make/common/JavaCompilation.gmk we setup copy rules for java resource files. The recipe for these resources do not use the MakeDir macro and recently we have experienced intermittent failures on Solaris that seem to be caused by this. Hopefully applying the macro here will reduce the intermittent failures.

      The instability started occurring after changing to Solaris 11.3 as build platform.

            erikj Erik Joelsson
            erikj Erik Joelsson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: