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

SetupNativeCompilation should compile to the support directory and then move the file

XMLWordPrintable

      In some circumstances, objcopy can create temporary files in the same directory as the file it is operating on. When we run objcopy after linking a native binary, this means there might for a brief moment show up temporary files.

      Currently, we use the final output directory as target directory for our linked binary, but this means that the temporary files might show up there. This has caused some seldom to occur, hard to catch intermittent race conditions with other parts of the build.

      Instead, we should put the output linked native binary in the support dir, and only move it to the output dir once we are done with all processing.

            Unassigned Unassigned
            ihse Magnus Ihse Bursie
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: