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

Javac server process left running if build fails on Windows

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: infrastructure
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b135
    • OS:
      windows

      Description

      The symptom of this problem is that if the build fails, quickly fixing the issue and rerunning the build will just fail again very early with an error message like this:

         make[1]: *** [/cygdrive/d/java/ws/dev/make/Init.gmk:290: main] Error 1
         make[1]: Leaving directory '/cygdrive/d/java/ws/dev'
         make: *** [/cygdrive/d/java/ws/dev/make/Init.gmk:185: java.base-only] Error 2

      The fix is rather simple. There is a cleanup call to stop the sjavac server background process in Init.gmk, but it's only run on successful builds and not in the "on-failure" routine. Adding the call to the on-failure routine fixes the issue.

        Attachments

          Activity

            People

            • Assignee:
              erikj Erik Joelsson
              Reporter:
              erikj Erik Joelsson
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: